libexecs 1.4 compatibility

This commit is contained in:
Renzo Davoli 2023-01-30 19:52:35 +01:00
parent 4486b11c54
commit 652087d8a0
1 changed files with 12 additions and 7 deletions

View File

@ -113,7 +113,12 @@ uint64_t get_authorized_caps(char **user_groups, uint64_t reqset) {
}
if (usermatch) {
if (tokencondition) {
if (system_execsa(tokencondition) == 0)
if
#if defined(EXECS_SOVERSION) && EXECS_SOVERSION > 0
(system_execsqa(tokencondition) == 0)
#else
(system_execsa(tokencondition) == 0)
#endif
ok_caps |= capset;
} else
ok_caps |= capset;