X7ROOT File Manager
Current Path:
/usr/share/bash-completion/completions
usr
/
share
/
bash-completion
/
completions
/
📁
..
📄
addpart
(520 B)
📄
blkdiscard
(651 B)
📄
blkid
(1.47 KB)
📄
blockdev
(761 B)
📄
bootctl
(1.79 KB)
📄
busctl
(7.54 KB)
📄
cal
(404 B)
📄
cfdisk
(736 B)
📄
chcpu
(1.18 KB)
📄
chfn
(445 B)
📄
chrt
(800 B)
📄
chsh
(506 B)
📄
col
(460 B)
📄
colcrt
(484 B)
📄
colrm
(509 B)
📄
column
(725 B)
📄
coredumpctl
(3.34 KB)
📄
ctrlaltdel
(335 B)
📄
delpart
(649 B)
📄
dmesg
(1.03 KB)
📄
dracut
(3.5 KB)
📄
eject
(1.16 KB)
📄
fallocate
(593 B)
📄
fdformat
(414 B)
📄
fdisk
(1.05 KB)
📄
findmnt
(2.77 KB)
📄
flock
(860 B)
📄
fsck
(789 B)
📄
fsck.cramfs
(508 B)
📄
fsck.minix
(403 B)
📄
fsfreeze
(524 B)
📄
fstrim
(626 B)
📄
gapplication
(1.36 KB)
📄
gdbus
(935 B)
📄
getopt
(815 B)
📄
grub
(11.41 KB)
📄
gsettings
(2.76 KB)
📄
hexdump
(659 B)
📄
hostnamectl
(2.16 KB)
📄
hwclock
(937 B)
📄
ionice
(837 B)
📄
ipcrm
(1.39 KB)
📄
ipcs
(514 B)
📄
isosize
(426 B)
📄
journalctl
(5.4 KB)
📄
kernel-install
(1.75 KB)
📄
kmod
(3.16 KB)
📄
ldattach
(1.23 KB)
📄
localectl
(3.36 KB)
📄
logger
(1.13 KB)
📄
loginctl
(4.03 KB)
📄
look
(572 B)
📄
losetup
(1.47 KB)
📄
lsblk
(1.44 KB)
📄
lscpu
(829 B)
📄
lsinitrd
(2.05 KB)
📄
lslocks
(1002 B)
📄
machinectl
(3.12 KB)
📄
mcookie
(502 B)
📄
mkfs
(692 B)
📄
mkfs.cramfs
(821 B)
📄
mkfs.minix
(716 B)
📄
mkswap
(765 B)
📄
more
(528 B)
📄
mountpoint
(570 B)
📄
namei
(500 B)
📄
nsenter
(955 B)
📄
partx
(1.07 KB)
📄
pivot_root
(387 B)
📄
prlimit
(1.16 KB)
📄
raw
(482 B)
📄
readprofile
(679 B)
📄
rename
(632 B)
📄
renice
(812 B)
📄
resizepart
(691 B)
📄
rev
(432 B)
📄
rpm
(9.77 KB)
📄
rtcwake
(841 B)
📄
runuser
(864 B)
📄
script
(667 B)
📄
scriptreplay
(592 B)
📄
semanage
(6.42 KB)
📄
setarch
(775 B)
📄
setpriv
(1.97 KB)
📄
setsebool
(1.77 KB)
📄
setsid
(433 B)
📄
setterm
(2.24 KB)
📄
sfdisk
(1.41 KB)
📄
su
(864 B)
📄
swaplabel
(635 B)
📄
swapon
(1.32 KB)
📄
systemctl
(12.29 KB)
📄
systemd-analyze
(3.9 KB)
📄
systemd-cat
(1.87 KB)
📄
systemd-cgls
(1.75 KB)
📄
systemd-cgtop
(1.32 KB)
📄
systemd-delta
(1.91 KB)
📄
systemd-detect-virt
(1.29 KB)
📄
systemd-nspawn
(5.74 KB)
📄
systemd-run
(3.51 KB)
📄
tailf
(530 B)
📄
taskset
(1.06 KB)
📄
tc
(26.41 KB)
📄
timedatectl
(2.52 KB)
📄
tuned-adm
(511 B)
📄
udevadm
(3.64 KB)
📄
ul
(655 B)
📄
unshare
(496 B)
📄
utmpdump
(466 B)
📄
uuidgen
(384 B)
📄
wdctl
(1.17 KB)
📄
whereis
(535 B)
📄
wipefs
(760 B)
📄
write
(494 B)
📄
yum
(11.23 KB)
📄
yummain.py
(11.23 KB)
📄
zramctl
(1.18 KB)
Editing: semanage
# This file is part of systemd. # # Copyright 2011-2013 Dan Walsh # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # systemd is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with systemd; If not, see <http://www.gnu.org/licenses/>. __contains_word () { local word=$1; shift for w in $*; do [[ $w = $word ]] && return 0; done return 1 } ALL_OPTS='-l --list -S -o -n --noheading -h --help' MANAGED_OPTS='-a --add -m --modify -d --delete -D --deleteall -C --locallist ' __get_all_stores () { dir -1 -F /etc/selinux/ | grep '/' | cut -d'/' -f 1 } __get_all_ftypes () { echo '-- -d -c -b -s -l -p' } __get_all_users () { seinfo -u 2> /dev/null | tail -n +3 } __get_all_types () { seinfo -t 2> /dev/null | tail -n +3 } __get_all_port_types () { seinfo -aport_type -x 2>/dev/null | tail -n +2 } __get_all_domains () { seinfo -adomain -x 2>/dev/null | tail -n +2 } __get_all_node_types () { seinfo -anode_type -x 2>/dev/null | tail -n +2 } __get_all_file_types () { seinfo -afile_type -x 2>/dev/null | tail -n +2 } __get_all_roles () { seinfo -r 2> /dev/null | tail -n +3 } __get_all_stores () { dir -1 -F /etc/selinux/ | grep '/' | cut -d'/' -f 1 } __get_import_opts () { echo '$ALL_OPTS --f --input_file' ; } __get_export_opts () { echo '$ALL_OPTS --f --output_file' ; } __get_boolean_opts () { echo '$ALL_OPTS --on -off -1 -0' ; } __get_user_opts () { echo '$ALL_OPTS $MANAGED_OPTS -L --level -r --range -R --role '; } __get_login_opts () { echo '$ALL_OPTS $MANAGED_OPTS -s --seuser -r --range'; } __get_port_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t -type -r --range -p --proto'; } __get_interface_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type '; } __get_node_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type -M --mask -p --proto'; } __get_fcontext_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type -e --equal -f --ftype '; } __get_module_opts () { echo '$ALL_OPTS $MANAGED_OPTS --enable --disable '; } __get_dontaudit_opts () { echo '-S on off' ; } __get_permissive_opts () { echo '$ALL_OPTS -a --add -d --delete' ; } _semanage () { local command=${COMP_WORDS[1]} local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} local verb comps local -A VERBS=( [BOOLEAN]='boolean' [DONTAUDIT]='dontaudit' [EXPORT]='export' [FCONTEXT]='fcontext' [IMPORT]='import' [INTERFACE]='interface' [LOGIN]='login' [MODULE]='module' [NODE]='node' [PERMISSIVE]='permissive' [PORT]='port' [USER]='user' ) if [ "$prev" = "-a" -a "$command" = "permissive" ]; then COMPREPLY=( $(compgen -W "$( __get_all_domains ) " -- "$cur") ) return 0 fi if [ "$verb" = "" -a "$prev" = "semanage" ]; then comps="${VERBS[*]}" elif [ "$verb" = "" -a "$prev" = "-S" -o "$prev" = "--store" ]; then COMPREPLY=( $(compgen -W "$( __get_all_stores ) " -- "$cur") ) return 0 elif [ "$verb" = "" -a "$prev" = "-p" -o "$prev" = "--proto" ]; then COMPREPLY=( $(compgen -W "tcp udp" -- "$cur") ) return 0 elif [ "$verb" = "" -a "$prev" = "-R" -o "$prev" = "-r" -o "$prev" = "--role" ]; then if [ "$command" != "user" -o "$prev" != "-r" ]; then COMPREPLY=( $(compgen -W "$( __get_all_roles ) " -- "$cur") ) return 0 else return 0 fi elif [ "$verb" = "" -a "$prev" = "-s" -o "$prev" = "--seuser" ]; then COMPREPLY=( $(compgen -W "$( __get_all_users ) " -- "$cur") ) return 0 elif [ "$verb" = "" -a "$prev" = "-f" -o "$prev" = "--ftype" ]; then COMPREPLY=( $(compgen -W "$( __get_all_ftypes ) " -- "$cur") ) return 0 elif [ "$verb" = "" -a "$prev" = "-t" -o "$prev" = "--types" ]; then if [ "$command" = "port" ]; then COMPREPLY=( $(compgen -W "$( __get_all_port_types ) " -- "$cur") ) return 0 fi if [ "$command" = "fcontext" ]; then COMPREPLY=( $(compgen -W "$( __get_all_file_types ) " -- "$cur") ) return 0 fi COMPREPLY=( $(compgen -W "$( __get_all_types ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[LOGIN]} ; then COMPREPLY=( $(compgen -W "$( __get_login_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[USER]} ; then COMPREPLY=( $(compgen -W "$( __get_user_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[PORT]} ; then COMPREPLY=( $(compgen -W "$( __get_port_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[INTERFACE]} ; then COMPREPLY=( $(compgen -W "$( __get_interface_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[MODULE]} ; then COMPREPLY=( $(compgen -W "$( __get_module_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[NODE]} ; then COMPREPLY=( $(compgen -W "$( __get_node_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[FCONTEXT]} ; then COMPREPLY=( $(compgen -W "$( __get_fcontext_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[BOOLEAN]} ; then COMPREPLY=( $(compgen -W "$( __get_boolean_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[PERMISSIVE]} ; then COMPREPLY=( $(compgen -W "$( __get_permissive_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[DONTAUDIT]} ; then COMPREPLY=( $(compgen -W "$( __get_dontaudit_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[IMPORT]} ; then COMPREPLY=( $(compgen -W "$( __get_import_opts ) " -- "$cur") ) return 0 elif __contains_word "$command" ${VERBS[EXPORT]} ; then COMPREPLY=( $(compgen -W "$( __get_export_opts ) " -- "$cur") ) return 0 fi COMPREPLY=( $(compgen -W "$comps" -- "$cur") ) return 0 } complete -F _semanage semanage
Upload File
Create Folder