Commit Diff
Diff:
0744bd0b8629c5e120a268c37b6930b0a10f485b
8e4fb2f745f8e7d6eb564fa7c4bb6827b58aa733
8e4fb2f745f8e7d6eb564fa7c4bb6827b58aa733
Commit:
8e4fb2f745f8e7d6eb564fa7c4bb6827b58aa733
Tree:
00f98bcfae247ffdad5f015d63ee684d5c0d7551
Committer:
jrmu <jrmu@ircnow.org>
Date:
Sat Jun 3 23:39:12 2023
UTC
Message:
Unveil sendmail and sh to send mail properly
--- botnow
+++ botnow
@@ -205,6 +205,8 @@ my $expires = $conf{expires};
unveil("./", "r") or die "Unable to unveil $!";
unveil("$confpath", "r") or die "Unable to unveil $!";
unveil("$backupspath", "rwc") or die "Unable to unveil $!";
+unveil("/usr/sbin/sendmail", "rx") or die "Unable to unveil $!";
+unveil("/bin/sh", "rx") or die "Unable to unveil $!";
unveil() or die "Unable to lock unveil $!";
#dns and inet for sockets, proc and exec for figlet