diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-02-20 07:42:08 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-02-20 07:51:31 -0500 |
commit | 126ce571dab09d84d8ee1b760981dbba7cbc1000 (patch) | |
tree | c13e957c752e3ae0798945e2e0be2af99da7dc68 /sway/main.c | |
parent | Add * policies and fix bug (diff) | |
download | sway-126ce571dab09d84d8ee1b760981dbba7cbc1000.tar.gz sway-126ce571dab09d84d8ee1b760981dbba7cbc1000.tar.zst sway-126ce571dab09d84d8ee1b760981dbba7cbc1000.zip |
Read configs from /etc/sway/security.d/*
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sway/main.c b/sway/main.c index 1c4c56c0..0151e078 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -175,13 +175,6 @@ static void security_sanity_check() { | |||
175 | cap_free(cap); | 175 | cap_free(cap); |
176 | } | 176 | } |
177 | #endif | 177 | #endif |
178 | if (!stat(SYSCONFDIR "/sway", &s)) { | ||
179 | if (s.st_uid != 0 || s.st_gid != 0 | ||
180 | || (s.st_mode & S_IWGRP) || (s.st_mode & S_IWOTH)) { | ||
181 | sway_log(L_ERROR, | ||
182 | "!! DANGER !! " SYSCONFDIR "/sway is not secure! It should be owned by root and set to 0755 at the minimum"); | ||
183 | } | ||
184 | } | ||
185 | } | 178 | } |
186 | 179 | ||
187 | int main(int argc, char **argv) { | 180 | int main(int argc, char **argv) { |