diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-07-28 01:44:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-07-28 01:44:18 +0200 |
commit | 4e5c1db95d06ad812de1a9f881be459b893b18c4 (patch) | |
tree | 7945a674510bf95466c193a8ae5b23fb13ea09b7 /src | |
parent | 8baebe85cc1dd06c8545037a4b0662e004281eff (diff) | |
parent | 4938696301a914ec26bcfc60bb99a1e9624e3789 (diff) |
Merge pull request #362 from d-hatayama/fix_selinux_unit_check_v2
selinux: fix missing SELinux unit access check
Diffstat (limited to 'src')
-rw-r--r-- | src/core/selinux-access.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/selinux-access.c b/src/core/selinux-access.c index e9a9a020de..50a90b0bac 100644 --- a/src/core/selinux-access.c +++ b/src/core/selinux-access.c @@ -302,12 +302,12 @@ int mac_selinux_unit_access_check_strv( int r; STRV_FOREACH(i, units) { - u = manager_get_unit(m, *i); - if (u) { - r = mac_selinux_unit_access_check(u, message, permission, error); - if (r < 0) - return r; - } + r = manager_load_unit(m, *i, NULL, error, &u); + if (r < 0) + return r; + r = mac_selinux_unit_access_check(u, message, permission, error); + if (r < 0) + return r; } #endif return 0; |