[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] [PATCH 6/7] [clang-tidy] Use O_CLOEXEC when opening f
From: |
Rosen Penev |
Subject: |
Re: [Bug-ddrescue] [PATCH 6/7] [clang-tidy] Use O_CLOEXEC when opening files |
Date: |
Wed, 16 Oct 2019 11:40:58 -0700 |
On Wed, Oct 16, 2019 at 10:22 AM Antonio Diaz Diaz <address@hidden> wrote:
>
> Rosen Penev wrote:
> > Found with android-cloexec-open
> >
> > This is mainly useful with SELinux is my understanding. Requires POSIX 2008.
>
> From POSIX:
>
> O_CLOEXEC
> The FD_CLOEXEC flag associated with the new descriptor shall be
> set to close the file descriptor upon execution of an exec
> family function.
>
> But ddrescue does not call any function from the exec family.
Yeah, this is probably useless.
>
> BTW, are you running ddrescue on android?
I am not. An interesting idea though...
>
> _______________________________________________
> Bug-ddrescue mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-ddrescue