mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-30 17:32:17 +00:00
If users of seobject set serange or seuser to "", we need to override.
Do not want bad data getting into the system
This commit is contained in:
parent
417fc54d78
commit
5102ed4cb8
@ -1788,9 +1788,15 @@ class fcontextRecords(semanageRecords):
|
||||
raise ValueError(_("File spec %s conflicts with equivalency rule '%s %s'; Try adding '%s' instead") % (target, i, fdict[i], t))
|
||||
|
||||
|
||||
def __add(self, target, type, ftype = "", serange = "", seuser = "system_u"):
|
||||
def __add(self, target, type, ftype = "", serange = "s0", seuser = "system_u"):
|
||||
self.validate(target)
|
||||
|
||||
if seuser == "":
|
||||
seuser = "system_u"
|
||||
|
||||
if serange == "":
|
||||
serange = "s0"
|
||||
|
||||
if is_mls_enabled == 1:
|
||||
serange = untranslate(serange)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user