about summary refs log tree commit diff
path: root/Completion/Linux/Type/_selinux_contexts
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Linux/Type/_selinux_contexts')
-rw-r--r--Completion/Linux/Type/_selinux_contexts14
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Linux/Type/_selinux_contexts b/Completion/Linux/Type/_selinux_contexts
new file mode 100644
index 000000000..4c2cf4288
--- /dev/null
+++ b/Completion/Linux/Type/_selinux_contexts
@@ -0,0 +1,14 @@
+#autoload
+
+local -a parts suf
+
+parts=( users roles types )
+while compset -P 1 '*:' && (( $+parts[1] )) ; do
+  shift parts
+done
+if (( $+parts[1] )); then
+  compset -S ':*' || suf=( -S : )
+  _selinux_$parts[1] $suf
+else
+  _message -e selinux-ranges 'selinux range'
+fi