Skip to content

fchmod(2) inherited file descriptors before exec(3)'ing a command

License

Notifications You must be signed in to change notification settings

msantos/fchmodexec-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYNOPSIS

fchmodexec mode fd ... -- cmd ...

DESCRIPTION

fchmodexec - fchmod(2) inherited file descriptors before exec(3)'ing a command

fchmodexec runs as part of an exec chain to change the permissions of any file descriptors inherited from the parent process before executing a program.

EXAMPLES

$ umask 077; ( ./fchmodexec 644 1 -- ls -al out) > out
$ cat out
-rw-r--r-- 1 msantos msantos 0 Mar 18 07:32 out
$ ls -al out
-rw-r--r-- 1 msantos msantos 48 Mar 18 07:32 out

OPTIONS

None.

BUILDING

cargo build

ALTERNATIVES

SEE ALSO

exec(3), fchmod(2)

About

fchmod(2) inherited file descriptors before exec(3)'ing a command

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages