From: guenther Date: Wed, 24 Jun 2015 03:38:51 +0000 (+0000) Subject: Apply normal handling to atfd+path args to chflagsat(2) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8f68afe2458dabe09bbdd90279244c1fceba00db;p=openbsd Apply normal handling to atfd+path args to chflagsat(2) Problem noted by patrick keshishian (sidster (at) boxsoft.com) ok deraadt@ --- 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 * 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);