[cap-talk] [Apparmor-dev] Re: execve() and CLOEXEC [correction]
David Hopwood
david.hopwood at industrial-designers.co.uk
Sun Nov 25 10:10:55 EST 2007
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
More information about the cap-talk
mailing list