chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v225: Applying various fixes and changes to src/shared that got lost during...
[elogind.git]
/
src
/
basic
/
selinux-util.c
diff --git
a/src/basic/selinux-util.c
b/src/basic/selinux-util.c
index 69885d9fc9b8456f19518171c7e93cbc18eaa6ec..03ebab32c5b69368256856da00dee57c439648a9 100644
(file)
--- a/
src/basic/selinux-util.c
+++ b/
src/basic/selinux-util.c
@@
-57,11
+57,14
@@
bool mac_selinux_use(void) {
#endif
}
#endif
}
+/// UNNEEDED by elogind
+#if 0
void mac_selinux_retest(void) {
#ifdef HAVE_SELINUX
cached_use = -1;
#endif
}
void mac_selinux_retest(void) {
#ifdef HAVE_SELINUX
cached_use = -1;
#endif
}
+#endif // 0
int mac_selinux_init(const char *prefix) {
int r = 0;
int mac_selinux_init(const char *prefix) {
int r = 0;
@@
-109,6
+112,8
@@
int mac_selinux_init(const char *prefix) {
return r;
}
return r;
}
+/// UNNEEDED by elogind
+#if 0
void mac_selinux_finish(void) {
#ifdef HAVE_SELINUX
void mac_selinux_finish(void) {
#ifdef HAVE_SELINUX
@@
-119,6
+124,7
@@
void mac_selinux_finish(void) {
label_hnd = NULL;
#endif
}
label_hnd = NULL;
#endif
}
+#endif // 0
int mac_selinux_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
int mac_selinux_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
@@
-187,7
+193,6
@@
int mac_selinux_apply(const char *path, const char *label) {
#endif
return 0;
}
#endif
return 0;
}
-#endif // 0
int mac_selinux_get_create_label_from_exe(const char *exe, char **label) {
int r = -EOPNOTSUPP;
int mac_selinux_get_create_label_from_exe(const char *exe, char **label) {
int r = -EOPNOTSUPP;
@@
-307,6
+312,7
@@
void mac_selinux_free(char *label) {
freecon((security_context_t) label);
#endif
}
freecon((security_context_t) label);
#endif
}
+#endif // 0
int mac_selinux_create_file_prepare(const char *path, mode_t mode) {
int r = 0;
int mac_selinux_create_file_prepare(const char *path, mode_t mode) {
int r = 0;
@@
-364,6
+370,8
@@
void mac_selinux_create_file_clear(void) {
#endif
}
#endif
}
+/// UNNEEDED by elogind
+#if 0
int mac_selinux_create_socket_prepare(const char *label) {
#ifdef HAVE_SELINUX
int mac_selinux_create_socket_prepare(const char *label) {
#ifdef HAVE_SELINUX
@@
-463,3
+471,4
@@
skipped:
#endif
return bind(fd, addr, addrlen) < 0 ? -errno : 0;
}
#endif
return bind(fd, addr, addrlen) < 0 ? -errno : 0;
}
+#endif // 0