chiark / gitweb /
mac: also rename use_{smack,selinux,apparmor}() calls so that they share the new...
[elogind.git] / src / shared / mkdir-label.c
index 89af39281975b7de5a162fee97df3e4ec5c4bcc4..2b9cb161cb2829cca6095290c0165aae8abd4a01 100644 (file)
 static int label_mkdir(const char *path, mode_t mode) {
         int r;
 
-        if (use_selinux()) {
+        if (mac_selinux_use()) {
                 r = mac_selinux_mkdir(path, mode);
                 if (r < 0)
                         return r;
         }
 
-        if (use_smack()) {
+        if (mac_smack_use()) {
                 r = mkdir(path, mode);
                 if (r < 0 && errno != EEXIST)
                         return -errno;