diff options
| author | 2022-11-15 08:24:03 +0100 | |
|---|---|---|
| committer | 2022-11-15 08:24:03 +0100 | |
| commit | adc41956b3f1b6109934f5aa09f49d276dac153d (patch) | |
| tree | 0b912ae8f79f5eeb703f253ddcebbf9f5c7dd64a | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-adc41956b3f1b6109934f5aa09f49d276dac153d.tar.gz snac2-adc41956b3f1b6109934f5aa09f49d276dac153d.tar.xz snac2-adc41956b3f1b6109934f5aa09f49d276dac153d.zip | |
Disabled unveil() temporarily.
| -rw-r--r-- | data.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -79,11 +79,15 @@ int srv_open(char *basedir) | |||
| 79 | if (error != NULL) | 79 | if (error != NULL) |
| 80 | srv_log(error); | 80 | srv_log(error); |
| 81 | 81 | ||
| 82 | /* disabled temporarily; messages can't be sent */ | ||
| 83 | #if 0 | ||
| 82 | #ifdef __OpenBSD__ | 84 | #ifdef __OpenBSD__ |
| 83 | srv_debug(2, xs_fmt("Calling unveil()")); | 85 | srv_debug(2, xs_fmt("Calling unveil()")); |
| 84 | unveil(basedir, "rwc"); | 86 | unveil(basedir, "rwc"); |
| 85 | unveil(NULL, NULL); | 87 | unveil("/usr/sbin", "x"); |
| 88 | unveil(NULL, NULL); | ||
| 86 | #endif /* __OpenBSD__ */ | 89 | #endif /* __OpenBSD__ */ |
| 90 | #endif | ||
| 87 | 91 | ||
| 88 | return ret; | 92 | return ret; |
| 89 | } | 93 | } |