From mboxrd@z Thu Jan 1 00:00:00 1970 From: tixxdz@gmail.com (Djalal Harouni) Date: Thu, 9 Nov 2017 17:14:04 +0100 Subject: [PATCH RFC v3 5/7] proc: move hidepid definitions to proc files In-Reply-To: <1510244046-3256-1-git-send-email-tixxdz@gmail.com> References: <1510244046-3256-1-git-send-email-tixxdz@gmail.com> Message-ID: <1510244046-3256-6-git-send-email-tixxdz@gmail.com> To: linux-security-module@vger.kernel.org List-Id: linux-security-module.vger.kernel.org This moves the 'hidepid' definitions to proc files. The 'hidepid' is a proc mount option, not really a per pid namespace value. It was there since it was used inside PID namespaces, however now we have improved proc logic and reduce the complexity and ties with PID namespaces lets move this last bit to where it really belongs. Cc: Kees Cook Cc: Greg Kroah-Hartman Cc: Andy Lutomirski Signed-off-by: Alexey Gladkov Signed-off-by: Djalal Harouni --- include/linux/pid_namespace.h | 6 ------ include/linux/proc_fs.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h index 786ea04..66f47f1 100644 --- a/include/linux/pid_namespace.h +++ b/include/linux/pid_namespace.h @@ -15,12 +15,6 @@ struct fs_pin; -enum { /* definitions for pid_namespace's hide_pid field */ - HIDEPID_OFF = 0, - HIDEPID_NO_ACCESS = 1, - HIDEPID_INVISIBLE = 2, -}; - struct pid_namespace { struct kref kref; struct idr idr; diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 408b51d..c123e5ec 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h @@ -12,6 +12,12 @@ struct proc_dir_entry; struct pid_namespace; +enum { /* definitions for 'hidepid' mount option */ + HIDEPID_OFF = 0, + HIDEPID_NO_ACCESS = 1, + HIDEPID_INVISIBLE = 2, +}; + struct proc_fs_info { struct pid_namespace *pid_ns; struct dentry *proc_self; /* For /proc/self/ */ -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html