History log of /external/selinux/python/semanage/semanage
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ebbf42d4087da1baa4ca3a578e48372b423b3635 06-Nov-2017 Petr Lautrbach <plautrba@redhat.com> python/semanage: Enforce noreload only if it's requested by -N option

We want to call semanage_set_reload() only if -N option is used.

Fixes:

$ sudo umount /sys/fs/selinux

$ sudo semanage fcontext -a --type=postfix_local_tmp_t /var/opt/01789667
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.31, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.31: No such file or directory
/sbin/load_policy: Can't load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
SELinux: Could not downgrade policy file /etc/selinux/targeted/policy/policy.31, searching for an older version.
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.31: No such file or directory
/sbin/load_policy: Can't load policy: No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
FileNotFoundError: [Errno 2] No such file or directory

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
/external/selinux/python/semanage/semanage
985753f11bb286bd7ec15ee2177e177a595f263a 06-Nov-2017 Petr Lautrbach <plautrba@redhat.com> python/semanage: Don't use global setup variable

In order to do that we need to propagate args into seobject objects and
use args.store to get a store name.

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
/external/selinux/python/semanage/semanage
d05eaaf098e53dc12cf8df2e750dad2afb645824 06-Nov-2017 Petr Lautrbach <plautrba@redhat.com> python/semanage: drop *_ini functions

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
/external/selinux/python/semanage/semanage
9a3d2c7a9b78f7ca04977a4c5a6bda4c8875c89c 22-May-2017 Daniel Jurgens <danielj@mellanox.com> semanage: Update semanage to allow runtime labeling of ibendports

Update libsepol and libsemanage to work with ibendport records. Add local
storage for new and modified ibendport records in ibendports.local.
Update semanage to parse the ibendport command options to add, modify,
and delete them.

Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
/external/selinux/python/semanage/semanage
6a7a5aafe52aa7dbd2daab1645829fd9821e716f 22-May-2017 Daniel Jurgens <danielj@mellanox.com> semanage: Update semanage to allow runtime labeling of Infiniband Pkeys

Update libsepol and libsemanage to work with pkey records. Add local
storage for new and modified pkey records in pkeys.local. Update semanage
to parse the pkey command options to add, modify, and delete pkeys.

Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
/external/selinux/python/semanage/semanage
86e568c27bd6e6d4428b9bca67c5de6a6bdcebb2 30-Nov-2016 Vit Mojzis <vmojzis@redhat.com> python/semanage/semanage: Unify argument handling

Missing argument checks for "fcontext" and "boolean" were performed
outside of "argparse", resulting in shortened help message (without
argument details) and no error description.
Fix: perform these checks using "argparse" as is the case with other
semanage options.

Some "required argument" check were performed outside of "handle_opts"
obscuring the code.
Fix: Add required arguments to {fcontext boolean}_args and remove the
checks from handle{Fcontext Boolean}.

Remove unpaired parentheses from "semanage fcontext" usage message.

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
/external/selinux/python/semanage/semanage
1e605e9905d354c2727cd65ea0f85f0e23470bf7 24-Nov-2016 cgzones <cgzones@googlemail.com> fix semanage fcontext help message

the ftype options were incorrect
/external/selinux/python/semanage/semanage
48dc232627d60e65b8b343036bc847df3bbef2ad 31-Oct-2016 Stephen Smalley <sds@tycho.nsa.gov> Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
/external/selinux/python/semanage/semanage