wifi: create a new patch 'drivers/net/wireless/rockchip_wlan' for porting drivers.
[firefly-linux-kernel-4.4.55.git] / fs / exec.c
index 1f446705636bed7b7dd1816778c302572369b910..bb60cda5ee30765a171f373537212134d979f139 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1669,6 +1669,12 @@ int __get_dumpable(unsigned long mm_flags)
        return (ret > SUID_DUMP_USER) ? SUID_DUMP_ROOT : ret;
 }
 
+/*
+ * This returns the actual value of the suid_dumpable flag. For things
+ * that are using this for checking for privilege transitions, it must
+ * test against SUID_DUMP_USER rather than treating it as a boolean
+ * value.
+ */
 int get_dumpable(struct mm_struct *mm)
 {
        return __get_dumpable(mm->flags);