K.S. Bhaskar via plug on 29 May 2020 15:21:33 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] /proc files owned by root for non-root user |
The normal value of /proc/<pid>/coredump_filter is 0x33, but we set it on process startup to 0x73 as we want to include shared memory mapped by hugepages in coredumps. Writing 0x73 to that file has always worked for us and is indeed the appropriate mechanism to configure core dumps.A customer has come up with a head-scratcher. A few of their processes (which run a utility program) end up with files under /proc owned by root for non-root processes, which means that writing 0x73 to /proc/<pid>/coredump_filter fails with a permissions error. The majority of processes have /proc files owned by the non-root users running the processes, and so writing to the file works as it should.Any ideas on how /proc files for a non-root user process can end up getting owned by root? Something to do with SELinux maybe? All ideas welcome. Thank you in advance.Regards– Bhaskar
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug