SELinux Userspace Release: 20140826-rc1
A release candidate for the next release of SELinux userspace is available on GitHub's releases page [1]. This release contains a handful of bug fixes and the new source policy/CIL work. Please let us know if you find any problems.
- Steve
[1] https://github.com/SELinuxProject/selinux/releases/tag/20140826-rc1
Quoted 8 lines · Steve Lawrence
A release candidate for the next release of SELinux userspace is available on GitHub's releases page [1]. This release contains a handful of bug fixes and the new source policy/CIL work. Please let us know if you find any problems.
- Steve
[1] https://github.com/SELinuxProject/selinux/releases/tag/20140826-rc1
Hi Steve
Are you planning on creating tarballs for this release candidate?
Also, is this a release that requires any actions to be taken as part of an upgrade (the move of /etc/selinux -> /var/lib/selinux)?
Wkr,
Sven Vermeulen
Quoted 12 lines · Sven Vermeulen
Quoted 8 lines · Steve Lawrence
A release candidate for the next release of SELinux userspace is available on GitHub's releases page [1]. This release contains a handful of bug fixes and the new source policy/CIL work. Please let us know if you find any problems.
- Steve
[1] https://github.com/SELinuxProject/selinux/releases/tag/20140826-rc1
Hi Steve
Quoted 7 lines
Are you planning on creating tarballs for this release candidate?
Also, is this a release that requires any actions to be taken as part of an upgrade (the move of
/etc/selinux->/var/lib/selinux)?Wkr,
Sven Vermeulen
We just pushed a second release candidate, 20140826-rc2, which just has some minor fixes to the ChangeLogs and uses the scripts/release method to make an actual release consistent with how they've been done in the past. The tarballs for the individual components of userspace for rc2 are now available on the GitHub "Releases" wiki page [1].
The only action that should be required post upgrade is migration from /etc/selinux to /var/lib/selinux. There is detailed information about this process on the GitHub "Policy Store Migration" wiki page [2], but the jist of it is after upgrading, execute the the semanage_migrate_store script installed by default to /usr/libexec/selinux. The script has additional options that can be used to do things like remove the old store or prevent rebuilding the policy. Run the script with --help for a description of the options.
Please let us know if there are any questions/issues.
Thanks,
- Steve
[1] https://github.com/SELinuxProject/selinux/wiki/Releases
[2] https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration
Quoted 10 lines · Steve Lawrence
The only action that should be required post upgrade is migration from
/etc/selinuxto/var/lib/selinux. There is detailed information about this process on the GitHub "Policy Store Migration" wiki page [2], but the jist of it is after upgrading, execute the thesemanage_migrate_storescript installed by default to/usr/libexec/selinux. The script has additional options that can be used to do things like remove the old store or prevent rebuilding the policy. Run the script with --help for a description of the options.Please let us know if there are any questions/issues.
Hi Steve
(Sorry for the direct mail in the previous remark, gmail doesn't like to automatically reply to the mailinglist)
When running the semanage_migrate_script I get the following problem:
Migrating from /etc/selinux/mcs/modules/active to /var/lib/selinux/mcs/active Attempting to rebuild policy from /var/lib/selinux
sysnetwork: Warning: 'else' blocks in optional statements are unsupported in CIL. Dropping from output.
Segmentation fault
The segmentation fault comes up at the following python code:
rc = semanage.semanage_commit(handle)
In the logs, I get:
[ 2403.250065] semanage_migrat[25752]: segfault at 28 ip
000003044dd14c5b sp 000003d2272a1140 error 4 in
libsepol.so.1[3044dcb2000+8f000]
The system has grsecurity enabled as well, but grsecurity should give more output if it was preventing something. I'll investigate this more tomorrow-evening.
Wkr,
Sven Vermeulen
Quoted 31 lines · Sven Vermeulen
Quoted 10 lines · Steve Lawrence
The only action that should be required post upgrade is migration from
/etc/selinuxto/var/lib/selinux. There is detailed information about this process on the GitHub "Policy Store Migration" wiki page [2], but the jist of it is after upgrading, execute the thesemanage_migrate_storescript installed by default to/usr/libexec/selinux. The script has additional options that can be used to do things like remove the old store or prevent rebuilding the policy. Run the script with --help for a description of the options.Please let us know if there are any questions/issues.
Hi Steve
(Sorry for the direct mail in the previous remark, gmail doesn't like to automatically reply to the mailinglist)
When running the
semanage_migrate_scriptI get the following problem:Migrating from
/etc/selinux/mcs/modules/activeto/var/lib/selinux/mcs/activeAttempting to rebuild policy from/var/lib/selinux
sysnetwork: Warning: 'else' blocks in optional statements are unsupported in CIL. Dropping from output.
Segmentation faultThe segmentation fault comes up at the following python code:
rc =
semanage.semanage_commit(handle)In the logs, I get:
Quoted 7 lines
[ 2403.250065] semanage_migrat[25752]: segfault at 28 ip
000003044dd14c5bsp000003d2272a1140error 4 in
libsepol.so.1[3044dcb2000+8f000]The system has grsecurity enabled as well, but grsecurity should give more output if it was preventing something. I'll investigate this more tomorrow-evening.
Can you provide a copy of your original policy prior to conversion?
Quoted 7 lines · Stephen Smalley
Quoted 7 lines
When running the
semanage_migrate_scriptI get the following problem:Migrating from
/etc/selinux/mcs/modules/activeto/var/lib/selinux/mcs/activeAttempting to rebuild policy from/var/lib/selinux
sysnetwork: Warning: 'else' blocks in optional statements are unsupported in CIL. Dropping from output.
Segmentation fault
[...]
Quoted 1 line
Can you provide a copy of your original policy prior to conversion?
If you mean the policy.29 file, certainly. You can wget it from
http://dev.gentoo.org/~swift/tmp/20140828-policy.29
Wkr,
Sven Vermeulen
Quoted 8 lines · Sven Vermeulen
Quoted 7 lines · Stephen Smalley
Quoted 7 lines
When running the
semanage_migrate_scriptI get the following problem:Migrating from
/etc/selinux/mcs/modules/activeto/var/lib/selinux/mcs/activeAttempting to rebuild policy from/var/lib/selinux
sysnetwork: Warning: 'else' blocks in optional statements are unsupported in CIL. Dropping from output.
Segmentation fault
Quoted 5 lines
[...]
Quoted 1 line
Can you provide a copy of your original policy prior to conversion?
If you mean the policy.29 file, certainly. You can wget it from
http://dev.gentoo.org/~swift/tmp/20140828-policy.29
No, the contents of /etc/selinux/mcs. The migration script converts the old policy module store, not the final kernel policy file.
Quoted 9 lines · Stephen Smalley
Quoted 8 lines · Sven Vermeulen
Quoted 7 lines · Stephen Smalley
Quoted 7 lines
When running the
semanage_migrate_scriptI get the following problem:Migrating from
/etc/selinux/mcs/modules/activeto/var/lib/selinux/mcs/activeAttempting to rebuild policy from/var/lib/selinux
sysnetwork: Warning: 'else' blocks in optional statements are unsupported in CIL. Dropping from output.
Segmentation fault
Quoted 9 lines
Quoted 5 lines
[...]
Quoted 1 line
Can you provide a copy of your original policy prior to conversion?
If you mean the policy.29 file, certainly. You can wget it from
http://dev.gentoo.org/~swift/tmp/20140828-policy.29No, the contents of
/etc/selinux/mcs. The migration script converts the old policy module store, not the final kernel policy file.
Hmm, I'm unable to reproduce this. I think the policy store that Stephen mentions will be help to reproduce it.
Quoted 7 lines · Steve Lawrence
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Segmentation fault
[...]
Quoted 1 line
Can you provide a copy of your original policy prior to conversion?
If you mean the policy.29 file, certainly. You can wget it from
http://dev.gentoo.org/~swift/tmp/20140828-policy.29
Quoted 7 lines
Quoted 3 lines
No, the contents of
/etc/selinux/mcs. The migration script converts the old policy module store, not the final kernel policy file.Hmm, I'm unable to reproduce this. I think the policy store that Stephen mentions will be help to reproduce it.
Certainly.
The policy store can be found at
http://dev.gentoo.org/~swift/tmp/20140829-etc-selinux-mcs.tar.gz
Wkr,
Sven Vermeulen
Quoted 12 lines · Sven Vermeulen
Quoted 11 lines · Steve Lawrence
Quoted 10 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Segmentation fault
[...]
Quoted 1 line
Can you provide a copy of your original policy prior to conversion?
If you mean the policy.29 file, certainly. You can wget it from
http://dev.gentoo.org/~swift/tmp/20140828-policy.29No, the contents of
/etc/selinux/mcs. The migration script converts the old policy module store, not the final kernel policy file.
Quoted 8 lines
Quoted 3 lines
Hmm, I'm unable to reproduce this. I think the policy store that Stephen mentions will be help to reproduce it.
Certainly.
The policy store can be found at
http://dev.gentoo.org/~swift/tmp/20140829-etc-selinux-mcs.tar.gz
Hmm...semanage_migrate_store worked for me on that policy store.
Can you reproduce the fault? If so, can you get debug info? Build with debug flags and run semanage_migrate_store under valgrind, perhaps?
Quoted 19 lines · Stephen Smalley
Quoted 18 lines · Sven Vermeulen
Quoted 7 lines · Steve Lawrence
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Segmentation fault
[...]
Quoted 1 line
Can you provide a copy of your original policy prior to conversion?
If you mean the policy.29 file, certainly. You can wget it from
http://dev.gentoo.org/~swift/tmp/20140828-policy.29Quoted 7 lines
Quoted 3 lines
No, the contents of
/etc/selinux/mcs. The migration script converts the old policy module store, not the final kernel policy file.Hmm, I'm unable to reproduce this. I think the policy store that Stephen mentions will be help to reproduce it.
Certainly.
Quoted 8 lines
Quoted 2 lines
The policy store can be found at
http://dev.gentoo.org/~swift/tmp/20140829-etc-selinux-mcs.tar.gzHmm...semanage_migrate_store worked for me on that policy store.
Can you reproduce the fault? If so, can you get debug info? Build with debug flags and run
semanage_migrate_storeunder valgrind, perhaps?
Ok, I got it to fault (had to change my /etc/selinux/config SELINUXTYPE=mcs to make it the active policy).
==18786== Invalid write of size 8
==18786== at 0xD83EC95: cil_reset_level (cil_reset_ast.c:214) ==18786== by 0xD83E9FE: cil_reset_user (cil_reset_ast.c:102) ==18786== by 0xD83F243: __cil_reset_node (cil_reset_ast.c:345) ==18786== by 0xD847FA0: cil_tree_walk_core (cil_tree.c:172) ==18786== by 0xD848109: cil_tree_walk (cil_tree.c:216) ==18786== by 0xD83F52C: cil_reset_ast (cil_reset_ast.c:471) ==18786== by 0xD84644A: cil_resolve_ast (cil_resolve_ast.c:3493) ==18786== by 0xD8179B6: cil_compile (cil.c:338) ==18786== by 0xE14E212: semanage_direct_commit (direct_api.c:1107) ==18786== by 0xE15C205: semanage_commit (handle.c:426) ==18786== by 0xDEF7264: _wrap_semanage_commit (semanageswig_wrap.c:4098) ==18786== by 0x31E68E0BD3: PyEval_EvalFrameEx (in
/usr/lib64/libpython2.7.so.1.0)
==18786== Address 0x20 is not stack'd, malloc'd or (recently) free'd
Quoted 19 lines · Stephen Smalley
Quoted 18 lines · Sven Vermeulen
Quoted 7 lines · Steve Lawrence
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Segmentation fault
[...]
Quoted 1 line
Can you provide a copy of your original policy prior to conversion?
If you mean the policy.29 file, certainly. You can wget it from
http://dev.gentoo.org/~swift/tmp/20140828-policy.29Quoted 7 lines
Quoted 3 lines
No, the contents of
/etc/selinux/mcs. The migration script converts the old policy module store, not the final kernel policy file.Hmm, I'm unable to reproduce this. I think the policy store that Stephen mentions will be help to reproduce it.
Certainly.
Quoted 9 lines
Quoted 2 lines
The policy store can be found at
http://dev.gentoo.org/~swift/tmp/20140829-etc-selinux-mcs.tar.gzHmm...semanage_migrate_store worked for me on that policy store.
Can you reproduce the fault? If so, can you get debug info? Build with debug flags and run
semanage_migrate_storeunder valgrind, perhaps?
We are able to get the segfault and have gotten a backtrace. It looks like it has to do with how optionals are handled and how we reset state when an optional is disabled. The fix in this particular case is pretty simple, but I think we need to go through the rest of the reset state code and ensure we aren't making similar mistakes. Might take a little bit of time.
Hi Steve & co
Will you be pushing out an rc3 release? If not, can I get the fix for this particular situation so I can continue testing?
Wkr,
Sven Vermeulen
Quoted 37 lines · Steve Lawrence
Quoted 19 lines · Stephen Smalley
Quoted 18 lines · Sven Vermeulen
Quoted 7 lines · Steve Lawrence
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Segmentation fault
[...]
Quoted 1 line
Can you provide a copy of your original policy prior to conversion?
If you mean the policy.29 file, certainly. You can wget it from
http://dev.gentoo.org/~swift/tmp/20140828-policy.29Quoted 7 lines
Quoted 3 lines
No, the contents of
/etc/selinux/mcs. The migration script converts the old policy module store, not the final kernel policy file.Hmm, I'm unable to reproduce this. I think the policy store that Stephen mentions will be help to reproduce it.
Certainly.
Quoted 9 lines
Quoted 2 lines
The policy store can be found at
http://dev.gentoo.org/~swift/tmp/20140829-etc-selinux-mcs.tar.gzHmm...semanage_migrate_store worked for me on that policy store.
Can you reproduce the fault? If so, can you get debug info? Build with debug flags and run
semanage_migrate_storeunder valgrind, perhaps?We are able to get the segfault and have gotten a backtrace. It looks like it has to do with how optionals are handled and how we reset state when an optional is disabled. The fix in this particular case is pretty simple, but I think we need to go through the rest of the reset state code and ensure we aren't making similar mistakes. Might take a little bit of time.
We will definitely push out an rc3. We have some fixes in the CIL and userspace repos that we just need to finalize and clean up. We should have an rc3 out this week.
Thanks,
- Steve
Quoted 46 lines · Sven Vermeulen
Hi Steve & co
Will you be pushing out an rc3 release? If not, can I get the fix for this particular situation so I can continue testing?
Wkr,
Sven VermeulenQuoted 37 lines · Steve Lawrence
Quoted 19 lines · Stephen Smalley
Quoted 18 lines · Sven Vermeulen
Quoted 7 lines · Steve Lawrence
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Segmentation fault
[...]
Quoted 1 line
Can you provide a copy of your original policy prior to conversion?
If you mean the policy.29 file, certainly. You can wget it from
http://dev.gentoo.org/~swift/tmp/20140828-policy.29Quoted 7 lines
Quoted 3 lines
No, the contents of
/etc/selinux/mcs. The migration script converts the old policy module store, not the final kernel policy file.Hmm, I'm unable to reproduce this. I think the policy store that Stephen mentions will be help to reproduce it.
Certainly.
Quoted 9 lines
Quoted 2 lines
The policy store can be found at
http://dev.gentoo.org/~swift/tmp/20140829-etc-selinux-mcs.tar.gzHmm...semanage_migrate_store worked for me on that policy store.
Can you reproduce the fault? If so, can you get debug info? Build with debug flags and run
semanage_migrate_storeunder valgrind, perhaps?We are able to get the segfault and have gotten a backtrace. It looks like it has to do with how optionals are handled and how we reset state when an optional is disabled. The fix in this particular case is pretty simple, but I think we need to go through the rest of the reset state code and ensure we aren't making similar mistakes. Might take a little bit of time.