454768f56d7a941657d800e303994bca086b7546 |
|
27-Jan-2017 |
Richard Haines <richard_c_haines@btinternet.com> |
setfiles: Fix setfiles progress indicator This fixes the following bug: UX regression: setfiles progress indicator is now misleading and confusing in fixfiles. The outputting of * is replaced by the number of files in 1k increments as the previous versions. If "/" is specified on the pathname, then this will indicate a mass relabel, an example output will be: restorecon -nRp /etc /tmp /boot / /etc 100.0% /tmp 100.0% /boot 100.0% 3.2% Also setfiles(8) and restorecon(8) versions that are implemented using the selinux_restorecon(3) function do not support the [-o filename] option as this was deprecated. This has now been made clear by displaying a message to stderr. The documentation has also been updated to reflect these changes. Reported-by: Alan Jenkins <alan.christopher.jenkins@gmail.com> Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
/external/selinux/libselinux/include/selinux/restorecon.h
|
2d814ff4c7798a26d29e1dd091e75043f1628561 |
|
26-Sep-2016 |
Richard Haines <richard_c_haines@btinternet.com> |
libselinux: Add function to find security.restorecon_last entries This patch adds a new selinux_restorecon_xattr(3) function to find and/or remove security.restorecon_last entries added by setfiles(8) or restorecon(8). Also review and update the man pages. Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
/external/selinux/libselinux/include/selinux/restorecon.h
|
f2e77865e144ab2e1313aa78d99b969f8f48695e |
|
26-Jul-2016 |
Richard Haines <richard_c_haines@btinternet.com> |
libselinux: Add setfiles support to selinux_restorecon(3) Add additional error handling, flags, xdev handling, alt_rootpath and add/remove non-seclabel fs's to support setfiles(8), restorecon(8) and restorecond(8) functionality. Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
/external/selinux/libselinux/include/selinux/restorecon.h
|
d4a46eec3fb271ccb442b876617361f5885d8d7a |
|
26-Jul-2016 |
Richard Haines <richard_c_haines@btinternet.com> |
libselinux: Evaluate inodes in selinux_restorecon(3) This patch adds inode evaluation services from policycoreutiles/setfiles to selinux_restorecon.c The overall objective is to modify restorecon(8) and setfiles(8) to use selinux_restorecon(3) services. Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
/external/selinux/libselinux/include/selinux/restorecon.h
|
bdd4e6d2b1bf8b7897be87056326f0dca18c1b94 |
|
23-Oct-2015 |
Richard Haines <richard_c_haines@btinternet.com> |
libselinux: Add selinux_restorecon function The selinux_restorecon(3) man page details this function. It has been built using the work from Android where an SHA1 hash of the specfiles is held in an extended attribute to enhance performance. Also contains components from policycoreutils/setfiles. The utils/selinux_restorecon.c utility demonstrates the functionality. Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
/external/selinux/libselinux/include/selinux/restorecon.h
|