summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/sudorule.py
diff options
context:
space:
mode:
authorFraser Tweedale <ftweedal@redhat.com>2016-09-23 16:43:19 +1000
committerMartin Basti <mbasti@redhat.com>2016-09-23 14:59:43 +0200
commitff490b6c403f9fe14fcc2d1558c43dae5b80f493 (patch)
treee43b4bf0a97e0d324ae33895ab1a9ff67746adf0 /ipaserver/plugins/sudorule.py
parent9b68d2a1f858854bc3cf2d6024f3fd3d79c2f696 (diff)
downloadfreeipa-ff490b6c403f9fe14fcc2d1558c43dae5b80f493.tar.gz
freeipa-ff490b6c403f9fe14fcc2d1558c43dae5b80f493.tar.xz
freeipa-ff490b6c403f9fe14fcc2d1558c43dae5b80f493.zip
sudorule: add SELinux transition examples to plugin doc
It is not obvious how to add SELinux type and role transitions to a Sudo rule. Update the 'sudorule' plugin documentation with examples of how to do this. Fixes: https://fedorahosted.org/freeipa/ticket/3461 Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
Diffstat (limited to 'ipaserver/plugins/sudorule.py')
-rw-r--r--ipaserver/plugins/sudorule.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipaserver/plugins/sudorule.py b/ipaserver/plugins/sudorule.py
index 15d03c659..90771072a 100644
--- a/ipaserver/plugins/sudorule.py
+++ b/ipaserver/plugins/sudorule.py
@@ -88,6 +88,10 @@ EXAMPLES:
""") + _("""
Set a default Sudo option:
ipa sudorule-add-option defaults --sudooption '!authenticate'
+""") + _("""
+ Set SELinux type and role transitions on a rule:
+ ipa sudorule-add-option sysadmin_sudo --sudooption type=unconfined_t
+ ipa sudorule-add-option sysadmin_sudo --sudooption role=unconfined_r
""")
register = Registry()