| Summary: | =sys-apps/policycoreutils-2.2.1-r1, =sys-libs/libsemanage-2.2 - semanage broken when using strict policies | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Amadeusz Sławiński <amade> |
| Component: | SELinux | Assignee: | Sven Vermeulen (RETIRED) <swift> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | selinux |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | selinux-utils | ||
| Package list: | Runtime testing required: | --- | |
|
Description
Amadeusz Sławiński
2013-11-20 19:33:27 UTC
http://thread.gmane.org/gmane.comp.security.selinux/19916 So after reversing patch in above link it still breaks After looking some more into this it seems that if I use semanage from before following commit it works ok (with patch from mailing list applied) http://userspace.selinuxproject.org/trac/changeset/c1f763e2933cc6bd4e89e7bbd603ae1de08d081c no patches = breakage patch from ml = breakage semanage from before commit = breakage patch from ml with semanage from before commit = works From new semanage code:
parser.add_argument('-L', '--level', default='s0', help=_('Default SELinux Level for SELinux user, s0 Default. (MLS/MCS Systems only)'))
def parser_add_range(parser, name):
parser.add_argument('-r', '--range', default="s0",
help=_('''
Seems like setting those defaults is wrong idea. It should probably check if it can do mls before setting it.
If I change them to default='' it works ok.
policycoreutils 2.2.5 is now in the tree, can you check if everything works as expected now? I did a few tests here (strict policy) and it seems to work now. I've run few commands and it seems working ok. Stable in tree |