Re: [RFC] shmgetfd idea

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/28/2014 04:14 PM, Kay Sievers wrote:
>>
>> If the "single owner" is determined by the file structure (e.g. via a
>> fcntl as opposed to a ioctl), then presumably we would simply deny an
>> attempt to open the inode and create a new file structure for it.
>>
>> On Linux, /proc/$PID/fd is an open as opposed to a dup (as much as I
>> personally don't like those semantics, they are well set in stone at
>> this point) so it satisfies your requirements.
> 
> If that all could be made working, for the kdbus case we would be fine
> with requiring *any* tmpfs mount, create a new memfd from there with
> O_TMPFILE, and use new fcntl() definitios to protect/seal/unseal and
> identify that fd.
> 
> For the more restricted cases like Android that tmpfs mount could get
> a mount option to not allow the creation of any non-unlinked file, I
> guess.
> 

Right, that would be the idea.

	-hpa


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]