Make SELinux support a feature

This commit is contained in:
topjohnwu
2023-10-17 13:29:15 -07:00
parent 66788dc58c
commit 4b8a0388e7
7 changed files with 36 additions and 29 deletions

View File

@@ -12,7 +12,7 @@ cxx-gen = { workspace = true }
pb-rs = { workspace = true }
[dependencies]
base = { path = "../base" }
base = { path = "../base", features = ["selinux"] }
cxx = { workspace = true }
num-traits = { workspace = true }
num-derive = { workspace = true }

View File

@@ -7,7 +7,6 @@
int main(int argc, char *argv[]) {
if (argc < 1)
return 1;
enable_selinux();
cmdline_logging();
init_argv0(argc, argv);
umask(0);

View File

@@ -26,7 +26,6 @@ int main(int argc, char *argv[]) {
if (argc < 1)
return 1;
enable_selinux();
cmdline_logging();
init_argv0(argc, argv);