chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
install: make InstallContext::{will_install,have_installed} OrderedHashmaps
[elogind.git]
/
src
/
shared
/
fileio-label.c
diff --git
a/src/shared/fileio-label.c
b/src/shared/fileio-label.c
index c3def3c568fd615ffbec57b6c9f11de5d7ec8aaa..b117c32cf2ba10751b22e65eaeaebeb9dfafdef8 100644
(file)
--- a/
src/shared/fileio-label.c
+++ b/
src/shared/fileio-label.c
@@
-30,13
+30,13
@@
int write_string_file_atomic_label(const char *fn, const char *line) {
int r;
int write_string_file_atomic_label(const char *fn, const char *line) {
int r;
- r =
label
_context_set(fn, S_IFREG);
+ r =
mac_selinux
_context_set(fn, S_IFREG);
if (r < 0)
return r;
if (r < 0)
return r;
- write_string_file_atomic(fn, line);
+
r =
write_string_file_atomic(fn, line);
-
label
_context_clear();
+
mac_selinux
_context_clear();
return r;
}
return r;
}
@@
-44,13
+44,13
@@
int write_string_file_atomic_label(const char *fn, const char *line) {
int write_env_file_label(const char *fname, char **l) {
int r;
int write_env_file_label(const char *fname, char **l) {
int r;
- r =
label
_context_set(fname, S_IFREG);
+ r =
mac_selinux
_context_set(fname, S_IFREG);
if (r < 0)
return r;
if (r < 0)
return r;
- write_env_file(fname, l);
+
r =
write_env_file(fname, l);
-
label
_context_clear();
+
mac_selinux
_context_clear();
return r;
}
return r;
}
@@
-59,13
+59,13
@@
int fopen_temporary_label(const char *target,
const char *path, FILE **f, char **temp_path) {
int r;
const char *path, FILE **f, char **temp_path) {
int r;
- r =
label
_context_set(target, S_IFREG);
+ r =
mac_selinux
_context_set(target, S_IFREG);
if (r < 0)
return r;
r = fopen_temporary(path, f, temp_path);
if (r < 0)
return r;
r = fopen_temporary(path, f, temp_path);
-
label
_context_clear();
+
mac_selinux
_context_clear();
return r;
}
return r;
}