diff options
author | 2015-06-24 03:38:51 +0000 | |
---|---|---|
committer | 2015-06-24 03:38:51 +0000 | |
commit | 8f68afe2458dabe09bbdd90279244c1fceba00db (patch) | |
tree | 3e2fe2aed49cced6670649c7dd52e56dcd8e99fd | |
parent | Revert previous commit. We still want to call setgroups in the case where (diff) | |
download | wireguard-openbsd-8f68afe2458dabe09bbdd90279244c1fceba00db.tar.xz wireguard-openbsd-8f68afe2458dabe09bbdd90279244c1fceba00db.zip |
Apply normal handling to atfd+path args to chflagsat(2)
Problem noted by patrick keshishian (sidster (at) boxsoft.com)
ok deraadt@
-rw-r--r-- | bin/systrace/register.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/systrace/register.c b/bin/systrace/register.c index 183ec90582d..2a422438fb3 100644 --- a/bin/systrace/register.c +++ b/bin/systrace/register.c @@ -1,4 +1,4 @@ -/* $OpenBSD: register.c,v 1.25 2015/01/16 00:19:12 deraadt Exp $ */ +/* $OpenBSD: register.c,v 1.26 2015/06/24 03:38:51 guenther Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -258,6 +258,11 @@ systrace_initcb(void) alias = systrace_new_alias("native", "fstatat", "native", "fsread"); systrace_alias_add_trans(alias, tl); + X(intercept_register_sccb("native", "chflagsat", trans_cb, NULL)); + intercept_register_translation("native", "chflagsat", 1, + &ic_translate_filenameatflag); + intercept_register_translation("native", "chflagsat", 2, &ic_fileflags); + X(intercept_register_sccb("native", "linkat", trans_cb, NULL)); intercept_register_translation("native", "linkat", 1, &ic_translate_unlinknameatflag); |