This source file includes following definitions.
- pcmk__is_privileged
1
2
3
4
5
6
7
8
9
10 #ifndef CRM_COMMON_ACL_INTERNAL__H
11 #define CRM_COMMON_ACL_INTERNAL__H
12
13 #include <string.h>
14
15
16
17 char *pcmk__uid2username(uid_t uid);
18 const char *pcmk__update_acl_user(xmlNode *request, const char *field,
19 const char *peer_user);
20
21 static inline bool
22 pcmk__is_privileged(const char *user)
23 {
24 return user && (!strcmp(user, CRM_DAEMON_USER) || !strcmp(user, "root"));
25 }
26
27 void pcmk__enable_acl(xmlNode *acl_source, xmlNode *target, const char *user);
28
29 bool pcmk__check_acl(xmlNode *xml, const char *name,
30 enum xml_private_flags mode);
31
32 #endif