diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2013-10-09 16:02:09 -0400 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2013-10-10 14:09:19 -0400 |
commit | 726e8f7a8f3603f952055e440e21cc69c7340b36 (patch) | |
tree | 1dfc822749574dde837c5eac22922c0800c94846 /init/init_parser.c | |
parent | 7dbe96602cde4822d22f17b85e33027563e8c521 (diff) | |
download | system_core-726e8f7a8f3603f952055e440e21cc69c7340b36.zip system_core-726e8f7a8f3603f952055e440e21cc69c7340b36.tar.gz system_core-726e8f7a8f3603f952055e440e21cc69c7340b36.tar.bz2 |
Add a restorecon_recursive built-in command to init.
Functionally equivalent to the restorecon -R toolbox command.
A use case is given by:
I48eaa2b9901ac8c978192c14493ba1058a089423
Also, fix error handling and documentation for restorecon command.
Change-Id: Ia7fbcc82645baf52c6bff0490d3492f458881cbb
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'init/init_parser.c')
-rw-r--r-- | init/init_parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init_parser.c b/init/init_parser.c index 2c2c91c..38582f5 100644 --- a/init/init_parser.c +++ b/init/init_parser.c @@ -133,6 +133,7 @@ int lookup_keyword(const char *s) case 'r': if (!strcmp(s, "estart")) return K_restart; if (!strcmp(s, "estorecon")) return K_restorecon; + if (!strcmp(s, "estorecon_recursive")) return K_restorecon_recursive; if (!strcmp(s, "mdir")) return K_rmdir; if (!strcmp(s, "m")) return K_rm; break; |