[systemd-commits] src/core
Lennart Poettering
lennart at kemper.freedesktop.org
Fri Nov 21 12:23:53 PST 2014
src/core/selinux-access.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1e648011b20c8126412d3cf2699d575d9ba9e0fe
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Fri Nov 21 17:02:15 2014 +0100
selinux-access: fix broken ternary operator
it seems to be a typo introduced by ebcf1f97de4f6b1580ae55eb56b1a3939fe6b602
- _r = selinux_access_check(_b, _m, _u->source_path ?:_u->fragment_path, (permission), &_error); \
+ ({ Unit *_unit = (unit); selinux_generic_access_check(bus,message, _unit->fragment_path ?: _unit->fragment_path, permission,error); })
diff --git a/src/core/selinux-access.h b/src/core/selinux-access.h
index bccf0d2..dd1e8bb 100644
--- a/src/core/selinux-access.h
+++ b/src/core/selinux-access.h
@@ -40,7 +40,7 @@ int mac_selinux_unit_access_check_strv(char **units, sd_bus_message *message, Ma
#define mac_selinux_unit_access_check(unit, message, permission, error) \
({ \
Unit *_unit = (unit); \
- mac_selinux_generic_access_check((message), _unit->fragment_path ?: _unit->fragment_path, (permission), (error)); \
+ mac_selinux_generic_access_check((message), _unit->source_path ?: _unit->fragment_path, (permission), (error)); \
})
#else
More information about the systemd-commits
mailing list