platform_external_selinux/policycoreutils
Joshua Brindle a4c9f58e03 Author: Daniel J Walsh
Email: dwalsh@redhat.com
Subject: Changes to semanage to allow it to handle transactions.
Date: Fri, 12 Sep 2008 11:52:31 -0400

Joshua Brindle wrote:
> Daniel J Walsh wrote:
> semanage -S targeted -i - << __eof
> user -a -P user -R "unconfined_r system_r" -r s0-s0:c0.c1023 unconfined_u
> user -a -P user -R guest_r guest_u
> user -a -P user -R xguest_r xguest_u
> __eof
> semanage -S targeted -i - << __eof
> login -m  -s unconfined_u -r s0-s0:c0.c1023 __default__
> login -m  -s unconfined_u -r s0-s0:c0.c1023 root
> __eof
>
> So you can add multiple records in a single pass.
>>

> This patch seems to cause some issues:

> [root@misterfreeze selinux-pristine]# semanage --help
> Traceback (most recent call last):
>   File "/usr/sbin/semanage", line 433, in <module>
>     usage(_("Requires 2 or more arguments"))
>   File "/usr/sbin/semanage", line 98, in usage
>     """) % message)
> TypeError: float argument required

Patch off your latest policycoreutils.

Signed-off-by: Joshua Brindle <method@manicmethod.com>
2008-09-07 22:00:20 -04:00
..
audit2allow initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
audit2why initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
load_policy initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
newrole initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
po initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
restorecond Author: Daniel J Walsh 2008-09-07 18:51:09 -04:00
run_init initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
scripts Author: Daniel J Walsh 2008-09-07 18:47:23 -04:00
secon initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
semanage Author: Daniel J Walsh 2008-09-07 22:00:20 -04:00
semodule initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
semodule_deps initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
semodule_expand initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
semodule_link initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
semodule_package initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
sestatus initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
setfiles initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
setsebool initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
ChangeLog bump policycoreutils to 2.0.56 and sepolgen to 1.0.14 2008-09-07 18:57:50 -04:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
VERSION bump policycoreutils to 2.0.56 and sepolgen to 1.0.14 2008-09-07 18:57:50 -04:00