fchmodexec

module
v0.0.0-...-7ecd902 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2025 License: ISC

README

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

go install go.iscode.ca/fchmodexec/cmd/fchmodexec@latest

To build a reproducible executable from the git repository:

CGO_ENABLED=0 go build -trimpath -ldflags "-w" ./cmd/fchmodexec

ALTERNATIVES

SEE ALSO

exec(3), fchmod(2)

Directories

Path Synopsis
cmd
fchmodexec command
Fchmodexec does an fchmod(2) on inherited file descriptors before exec(3)'ing a command.
Fchmodexec does an fchmod(2) on inherited file descriptors before exec(3)'ing a command.
pkg
fchmodexec
Fchmodexec sets permissions on a list of file descriptors.
Fchmodexec sets permissions on a list of file descriptors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL