mac: rename apis with mac_{selinux/smack}_ prefix
This commit is contained in:
committed by
Lennart Poettering
parent
66b6d9d5b5
commit
cc56fafeeb
@@ -36,7 +36,7 @@ static int label_mkdir(const char *path, mode_t mode) {
|
||||
int r;
|
||||
|
||||
if (use_selinux()) {
|
||||
r = label_mkdir_selinux(path, mode);
|
||||
r = mac_selinux_mkdir(path, mode);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
@@ -46,7 +46,7 @@ static int label_mkdir(const char *path, mode_t mode) {
|
||||
if (r < 0 && errno != EEXIST)
|
||||
return -errno;
|
||||
|
||||
r = smack_relabel_in_dev(path);
|
||||
r = mac_smack_relabel_in_dev(path);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user