summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-11-21 17:02:15 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-21 21:23:39 +0100
commit1e648011b20c8126412d3cf2699d575d9ba9e0fe (patch)
treeeb1d0bf8122fade3b3d67a06f57b5da4643afc79
parent43dbecd5a31f6b247b261a5a281afecafdf1c841 (diff)
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); })
-rw-r--r--src/core/selinux-access.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/selinux-access.h b/src/core/selinux-access.h
index bccf0d2913..dd1e8bb9d0 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