Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/jmorris/security-testing-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
  mmap_min_addr check CAP_SYS_RAWIO only for write
  • Loading branch information
torvalds committed May 14, 2010
2 parents 7ac992e + 4ae69e6 commit 3ac4e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/min_addr.c
Expand Up @@ -33,7 +33,7 @@ int mmap_min_addr_handler(struct ctl_table *table, int write,
{
int ret;

if (!capable(CAP_SYS_RAWIO))
if (write && !capable(CAP_SYS_RAWIO))
return -EPERM;

ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos);
Expand Down

0 comments on commit 3ac4e82

Please sign in to comment.