mirror of
https://github.com/SELinuxProject/selinux
synced 2025-03-02 16:30:36 +00:00
semanage: fix error message for fcontext -m
The type must be a file of device type, not a port type. Signed-off-by: Miroslav Vadkerti <mvadkert@redhat.com>
This commit is contained in:
parent
0864aa96aa
commit
846c87f506
@ -1938,7 +1938,7 @@ class fcontextRecords(semanageRecords):
|
||||
if serange == "" and setype == "" and seuser == "":
|
||||
raise ValueError(_("Requires setype, serange or seuser"))
|
||||
if setype and setype not in self.valid_types:
|
||||
raise ValueError(_("Type %s is invalid, must be a port type") % setype)
|
||||
raise ValueError(_("Type %s is invalid, must be a file or device type") % setype)
|
||||
|
||||
self.validate(target)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user