tech-kern archive

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

Re: /proc/#/ctl removal



On 21.08.2017 12:13, Christos Zoulas wrote:
> In article <da98e240-5dfb-4c49-ebb0-55c43d7b5598%gmx.com@localhost>,
> Kamil Rytarowski  <n54%gmx.com@localhost> wrote:
>> -=-=-=-=-=-
>> -=-=-=-=-=-
>>
>> I plan to remove the filesystem process tracing capability through
>> /proc/#/ctl. This is a legacy interface from 4.4BSD, and it was
>> introduced to overcome shortcomings of ptrace(2) at that time, which are
>> no longer relevant (performance). Today /proc/#/ctl offers a narrow
>> subset of ptrace(2) commands and is not applicable for modern
>> applications use beyond simplistic tracing scenarios.
>>
>> This removal will simplify kernel internals. Users will still be able to
>> use all the other /proc files.
>>
>> Presumably there are no known users of this interface and this is why I
>> plan to remove it without compat options.
>>
>> This change won't affect other procfs files neither Linux compat
>> features within mount_procfs(8). /proc/#/ctl isn't available on Linux.
> 
> Nothing to my knowledge uses is. Don't forget to cleanup the
> kernel ptrace code too (PSL_FSTRACE).
> 
> christos
> 

I will do it.

Draft patch: http://netbsd.org/~kamil/patch-00036-procfs_ctl.txt

I plan to commit it on Monday.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index