mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
selinux-util: reorder functions
This commit is contained in:
@@ -39,8 +39,6 @@ typedef enum Initialized {
|
||||
LAZY_INITIALIZED,
|
||||
} Initialized;
|
||||
|
||||
static int mac_selinux_reload(int seqno);
|
||||
|
||||
static int cached_use = -1;
|
||||
static Initialized initialized = UNINITIALIZED;
|
||||
static int last_policyload = 0;
|
||||
@@ -214,6 +212,16 @@ int mac_selinux_init_lazy(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if HAVE_SELINUX
|
||||
static int mac_selinux_reload(int seqno) {
|
||||
log_debug("SELinux reload %d", seqno);
|
||||
|
||||
(void) open_label_db();
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
void mac_selinux_maybe_reload(void) {
|
||||
#if HAVE_SELINUX
|
||||
int policyload;
|
||||
@@ -256,16 +264,6 @@ void mac_selinux_finish(void) {
|
||||
#endif
|
||||
}
|
||||
|
||||
#if HAVE_SELINUX
|
||||
static int mac_selinux_reload(int seqno) {
|
||||
log_debug("SELinux reload %d", seqno);
|
||||
|
||||
(void) open_label_db();
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAVE_SELINUX
|
||||
static int selinux_fix_fd(
|
||||
int fd,
|
||||
|
||||
Reference in New Issue
Block a user