[Fwd: Re: [cap-talk] [Apparmor-dev] Re: execve() and CLOEXEC
[correction]]
Rob Meijer
capibara at xs4all.nl
Sun Nov 25 12:57:22 MST 2007
---------------------------- Original Message ----------------------------
Subject: Re: [cap-talk] [Apparmor-dev] Re: execve() and CLOEXEC [correction]
From: "David Hopwood" <david.hopwood at industrial-designers.co.uk>
Date: Sun, November 25, 2007 16:10
To: "General discussions concerning capability systems."
<cap-talk at mail.eros-os.org>
--------------------------------------------------------------------------
David Hopwood wrote:
> The convention for other *at functions is that setting the directory fd
> argument to AT_FDCWD indicates the current directory. So safe_execve is
> redundant:
>
> int safe_execve(const fd_set *keepset, int dirfd, const char *filename,
> char *const argv[], char *const envp[]) {
> return execveat(keepset, AT_FDCWD, filename, argv, envp);
> }
Correction: delete "int dirfd, " here.
--
David Hopwood
_______________________________________________
cap-talk mailing list
cap-talk at mail.eros-os.org
http://www.eros-os.org/mailman/listinfo/cap-talk
More information about the Apparmor-dev
mailing list