chiark / gitweb /
mac: also rename use_{smack,selinux,apparmor}() calls so that they share the new...
[elogind.git] / src / shared / label.c
index bee96357315836ed2996bb520c9dc2bf83710242..fe7fd8381e5992ba8c4695811a25559020c43b98 100644 (file)
 int label_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
         int r = 0;
 
 int label_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
         int r = 0;
 
-        if (use_selinux()) {
+        if (mac_selinux_use()) {
                 r = mac_selinux_fix(path, ignore_enoent, ignore_erofs);
                 if (r < 0)
                         return r;
         }
 
                 r = mac_selinux_fix(path, ignore_enoent, ignore_erofs);
                 if (r < 0)
                         return r;
         }
 
-        if (use_smack()) {
+        if (mac_smack_use()) {
                 r = mac_smack_relabel_in_dev(path);
                 if (r < 0)
                         return r;
                 r = mac_smack_relabel_in_dev(path);
                 if (r < 0)
                         return r;