Accept O_CLOEXEC in shm_open().
Reviewed by: jilles, jhb MFC after: 1 week
This commit is contained in:
parent
af3088290b
commit
f55a7d3058
@ -704,7 +704,7 @@ sys_shm_open(struct thread *td, struct shm_open_args *uap)
|
||||
(uap->flags & O_ACCMODE) != O_RDWR)
|
||||
return (EINVAL);
|
||||
|
||||
if ((uap->flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC)) != 0)
|
||||
if ((uap->flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC)) != 0)
|
||||
return (EINVAL);
|
||||
|
||||
fdp = td->td_proc->p_fd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user