#include <linux/init.h> #include <linux/mm.h> #include <linux/security.h> #include <linux/sysctl.h> /* amount of vm to protect from userspace access by both DAC and the LSM*/ unsigned long mmap_min_addr; /* amount of vm to protect from userspace using CAP_SYS_RAWIO (DAC) */ unsigned long dac_mmap_min_addr = CONFIG_DEFAULT_MMAP_MIN_ADDR; /* amount of vm to protect from userspace using the LSM = CONFIG_LSM_MMAP_MIN_ADDR */ /* * Update mmap_min_addr = max(dac_mmap_min_addr, CONFIG_LSM_MMAP_MIN_ADDR) */
static void update_mmap_min_addr(void) { #ifdef CONFIG_LSM_MMAP_MIN_ADDR if (dac_mmap_min_addr > CONFIG_LSM_MMAP_MIN_ADDR) mmap_min_addr = dac_mmap_min_addr; else mmap_min_addr = CONFIG_LSM_MMAP_MIN_ADDR; #else mmap_min_addr = dac_mmap_min_addr; #endif }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
eric paris | eric paris | 34 | 100.00% | 1 | 100.00% |
Total | 34 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
eric paris | eric paris | 50 | 78.12% | 1 | 33.33% |
kees cook | kees cook | 14 | 21.88% | 2 | 66.67% |
Total | 64 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
eric paris | eric paris | 14 | 93.33% | 1 | 50.00% |
h hartley sweeten | h hartley sweeten | 1 | 6.67% | 1 | 50.00% |
Total | 15 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
eric paris | eric paris | 130 | 89.66% | 1 | 25.00% |
kees cook | kees cook | 14 | 9.66% | 2 | 50.00% |
h hartley sweeten | h hartley sweeten | 1 | 0.69% | 1 | 25.00% |
Total | 145 | 100.00% | 4 | 100.00% |