<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/security/min_addr.c, branch linux-3.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-3.15.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-3.15.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2010-05-14T09:03:15Z</updated>
<entry>
<title>mmap_min_addr check CAP_SYS_RAWIO only for write</title>
<updated>2010-05-14T09:03:15Z</updated>
<author>
<name>Kees Cook</name>
<email>kees.cook@canonical.com</email>
</author>
<published>2010-04-22T19:19:17Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=4ae69e6b718589abe97c9625ccbb1e0bc95a8c0e'/>
<id>urn:sha1:4ae69e6b718589abe97c9625ccbb1e0bc95a8c0e</id>
<content type='text'>
Redirecting directly to lsm, here's the patch discussed on lkml:
http://lkml.org/lkml/2010/4/22/219

The mmap_min_addr value is useful information for an admin to see without
being root ("is my system vulnerable to kernel NULL pointer attacks?") and
its setting is trivially easy for an attacker to determine by calling
mmap() in PAGE_SIZE increments starting at 0, so trying to keep it private
has no value.

Only require CAP_SYS_RAWIO if changing the value, not reading it.

Comment from Serge :

  Me, I like to write my passwords with light blue pen on dark blue
  paper, pasted on my window - if you're going to get my password, you're
  gonna get a headache.

Signed-off-by: Kees Cook &lt;kees.cook@canonical.com&gt;
Acked-by: Serge Hallyn &lt;serue@us.ibm.com&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
(cherry picked from commit 822cceec7248013821d655545ea45d1c6a9d15b3)
</content>
</entry>
<entry>
<title>security/min_addr.c: make init_mmap_min_addr() static</title>
<updated>2009-12-16T22:24:22Z</updated>
<author>
<name>H Hartley Sweeten</name>
<email>hartleys@visionengravers.com</email>
</author>
<published>2009-12-15T23:05:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=dd880fbe8e4792d1185a5101dc751f49eab0a509'/>
<id>urn:sha1:dd880fbe8e4792d1185a5101dc751f49eab0a509</id>
<content type='text'>
init_mmap_min_addr() is a pure_initcall and should be static.

Signed-off-by: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>sysctl: require CAP_SYS_RAWIO to set mmap_min_addr</title>
<updated>2009-11-08T21:34:22Z</updated>
<author>
<name>Kees Cook</name>
<email>kees.cook@canonical.com</email>
</author>
<published>2009-11-08T17:37:00Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0e1a6ef2dea88101b056b6d9984f3325c5efced3'/>
<id>urn:sha1:0e1a6ef2dea88101b056b6d9984f3325c5efced3</id>
<content type='text'>
Currently the mmap_min_addr value can only be bypassed during mmap when
the task has CAP_SYS_RAWIO.  However, the mmap_min_addr sysctl value itself
can be adjusted to 0 if euid == 0, allowing a bypass without CAP_SYS_RAWIO.
This patch adds a check for the capability before allowing mmap_min_addr to
be changed.

Signed-off-by: Kees Cook &lt;kees.cook@canonical.com&gt;
Acked-by: Serge Hallyn &lt;serue@us.ibm.com&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
<entry>
<title>sysctl: remove "struct file *" argument of -&gt;proc_handler</title>
<updated>2009-09-24T14:21:04Z</updated>
<author>
<name>Alexey Dobriyan</name>
<email>adobriyan@gmail.com</email>
</author>
<published>2009-09-23T22:57:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8d65af789f3e2cf4cfbdbf71a0f7a61ebcd41d38'/>
<id>urn:sha1:8d65af789f3e2cf4cfbdbf71a0f7a61ebcd41d38</id>
<content type='text'>
It's unused.

It isn't needed -- read or write flag is already passed and sysctl
shouldn't care about the rest.

It _was_ used in two places at arch/frv for some reason.

Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
Cc: David Howells &lt;dhowells@redhat.com&gt;
Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Cc: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: "David S. Miller" &lt;davem@davemloft.net&gt;
Cc: James Morris &lt;jmorris@namei.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Security/SELinux: seperate lsm specific mmap_min_addr</title>
<updated>2009-08-17T05:09:11Z</updated>
<author>
<name>Eric Paris</name>
<email>eparis@redhat.com</email>
</author>
<published>2009-07-31T16:54:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=788084aba2ab7348257597496befcbccabdc98a3'/>
<id>urn:sha1:788084aba2ab7348257597496befcbccabdc98a3</id>
<content type='text'>
Currently SELinux enforcement of controls on the ability to map low memory
is determined by the mmap_min_addr tunable.  This patch causes SELinux to
ignore the tunable and instead use a seperate Kconfig option specific to how
much space the LSM should protect.

The tunable will now only control the need for CAP_SYS_RAWIO and SELinux
permissions will always protect the amount of low memory designated by
CONFIG_LSM_MMAP_MIN_ADDR.

This allows users who need to disable the mmap_min_addr controls (usual reason
being they run WINE as a non-root user) to do so and still have SELinux
controls preventing confined domains (like a web server) from being able to
map some area of low memory.

Signed-off-by: Eric Paris &lt;eparis@redhat.com&gt;
Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
</content>
</entry>
</feed>
-6.12.y</option>
<option value='linux-6.13.y'>linux-6.13.y</option>
<option value='linux-6.14.y'>linux-6.14.y</option>
<option value='linux-6.15.y'>linux-6.15.y</option>
<option value='linux-6.16.y'>linux-6.16.y</option>
<option value='linux-6.17.y'>linux-6.17.y</option>
<option value='linux-6.18.y'>linux-6.18.y</option>
<option value='linux-6.19.y'>linux-6.19.y</option>
<option value='linux-6.2.y'>linux-6.2.y</option>
<option value='linux-6.3.y'>linux-6.3.y</option>
<option value='linux-6.4.y'>linux-6.4.y</option>
<option value='linux-6.5.y'>linux-6.5.y</option>
<option value='linux-6.6.y' selected='selected'>linux-6.6.y</option>
<option value='linux-6.7.y'>linux-6.7.y</option>
<option value='linux-6.8.y'>linux-6.8.y</option>
<option value='linux-6.9.y'>linux-6.9.y</option>
<option value='linux-rolling-lts'>linux-rolling-lts</option>
<option value='linux-rolling-stable'>linux-rolling-stable</option>
<option value='master'>master</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>Hosts the 0x221E linux distro kernel.</td><td class='sub right'>Ubuntu</td></tr></table>
<table class='tabs'><tr><td>
<a href='/distro/kernel/?h=linux-6.6.y'>summary</a><a href='/distro/kernel/refs/?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'>refs</a><a class='active' href='/distro/kernel/log/drivers/iio/adc/ad7124.c?h=linux-6.6.y'>log</a><a href='/distro/kernel/tree/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'>tree</a><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'>commit</a><a href='/distro/kernel/diff/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'>diff</a></td><td class='form'><form class='right' method='get' action='/distro/kernel/log/drivers/iio/adc/ad7124.c'>
<input type='hidden' name='h' value='linux-6.6.y'/><input type='hidden' name='id' value='16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/distro/kernel/log/?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'>root</a>/<a href='/distro/kernel/log/drivers?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'>drivers</a>/<a href='/distro/kernel/log/drivers/iio?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'>iio</a>/<a href='/distro/kernel/log/drivers/iio/adc?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'>adc</a>/<a href='/distro/kernel/log/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e'>ad7124.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/distro/kernel/log/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=16fbf79b0f83bc752cee8589279f1ebfe57b3b6e&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th></tr>
<tr><td><span title='2020-01-22 09:05:34 +0100'>2020-01-22</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=c318f074d9fdeae16e19cbb2ed53b50d2bcdfdb8'>Merge 5.5-rc7 into staging-next</a></td><td>Greg Kroah-Hartman</td></tr>
<tr><td><span title='2020-01-18 11:43:16 +0000'>2020-01-18</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=79ef91493f5494e9ddbad85bf571ec03940a7f5c'>iio: adc: ad7124: Set IRQ type to falling</a></td><td>Alexandru Tachici</td></tr>
<tr><td><span title='2020-01-18 11:43:16 +0000'>2020-01-18</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=da4d3d6bb9f6047217d549c233303161bb4678d9'>iio: adc: ad-sigma-delta: Allow custom IRQ flags</a></td><td>Alexandru Tachici</td></tr>
<tr><td><span title='2020-01-13 12:08:14 +0100'>2020-01-13</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=d7857e4ee1ba69732b16c73b2f2dde83ecd78ee4'>iio: adc: ad7124: Fix DT channel configuration</a></td><td>Alexandru Tachici</td></tr>
<tr><td><span title='2019-12-08 18:10:29 +0000'>2019-12-08</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=11d7c8d3b1259c303fb52789febed58f0bc35ad1'>iio: adc: ad7124: Enable internal reference</a></td><td>Mircea Caprioru</td></tr>
<tr><td><span title='2019-06-26 21:24:21 +0100'>2019-06-26</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=1478a388f4baaa6da4767a0d7cf82a47826b9fc0'>iio: adc: ad7124: Shift to dynamic allocation for channel configuration</a></td><td>Mircea Caprioru</td></tr>
<tr><td><span title='2019-06-26 21:24:21 +0100'>2019-06-26</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=0eaecea6e4878abbf1d3e8de3e4eeabc856133d4'>iio: adc: ad7124: Add buffered input support</a></td><td>Mircea Caprioru</td></tr>
<tr><td><span title='2019-06-26 21:24:21 +0100'>2019-06-26</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=f1794fd7bdf7981e21595d0162ab4f7305b3c7c1'>iio: adc: ad7124: Remove input number limitation</a></td><td>Mircea Caprioru</td></tr>
<tr><td><span title='2019-04-04 20:19:59 +0100'>2019-04-04</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=b34d6c835d6b6ba8c2412cc954f2bb227378d184'>iio: adc: ad7124 fix indentation issue, remove extra tab</a></td><td>Colin Ian King</td></tr>
<tr><td><span title='2018-11-17 16:41:09 +0000'>2018-11-17</span></td><td><a href='/distro/kernel/commit/drivers/iio/adc/ad7124.c?h=linux-6.6.y&amp;id=b3af341bbd9662c672d596427ad23973584221d3'>iio: adc: Add ad7124 support</a></td><td>Stefan Popa</td></tr>
