diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-11-23 16:59:21 -0500 |
---|---|---|
committer | Alexander Bokovoy <abokovoy@redhat.com> | 2011-12-09 16:46:25 +0200 |
commit | 55512dc938eb4a9a6655e473beab587e340af55c (patch) | |
tree | 27805ce2bcbd5b9fbb759cfab781ad3575a83792 /ipalib/errors.py | |
parent | a1c9e3618c9d0e03fc926031f2c65d92da7a8b03 (diff) | |
download | freeipa-55512dc938eb4a9a6655e473beab587e340af55c.tar.gz freeipa-55512dc938eb4a9a6655e473beab587e340af55c.tar.xz freeipa-55512dc938eb4a9a6655e473beab587e340af55c.zip |
Add SELinux user mapping framework.
This will allow one to define what SELinux context a given user gets
on a given machine. A rule can contain a set of users and hosts or it
can point to an existing HBAC rule that defines them.
https://fedorahosted.org/freeipa/ticket/755
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r-- | ipalib/errors.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index 3434c26be..4463fee70 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -1512,6 +1512,22 @@ class NotRegisteredError(ExecutionError): format = _('Not registered yet') +class DependentEntry(ExecutionError): + """ + **4307** Raised when an entry being deleted has dependencies + + For example: + >>> raise DependentEntry(label=u'SELinux User Map', key=u'test', dependent=u'test1') + Traceback (most recent call last): + ... + DependentEntry: Not registered yet + + """ + + errno = 4307 + format = _('%(key)s cannot be deleted because %(label)s %(dependent)s requires it') + + ############################################################################## # 5000 - 5999: Generic errors |