1
0
mirror of https://github.com/openbsd/src.git synced 2026-05-01 17:46:35 +00:00

replace pledge "tmppath" with unveil "/tmp" "rwc" and "rpath wpath cpath".

ok ok
This commit is contained in:
deraadt
2026-02-18 15:54:20 +00:00
parent 2a03ab9331
commit e05dc1d889

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: smtpc.c,v 1.21 2024/05/13 06:48:26 jsg Exp $ */
/* $OpenBSD: smtpc.c,v 1.22 2026/02/18 15:54:20 deraadt Exp $ */
/*
* Copyright (c) 2018 Eric Faurot <eric@openbsd.org>
@@ -245,7 +245,9 @@ main(int argc, char **argv)
} else
tls_config_verify(tls_config);
if (pledge("stdio inet dns tmppath", NULL) == -1)
if (unveil("/tmp", "rwc") == -1)
fatal("unveil /tmp");
if (pledge("stdio inet dns rpath wpath cpath", NULL) == -1)
fatal("pledge");
if (!noaction)