<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/security/apparmor/lsm.c, branch linux-4.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-07-27T07:39:26Z</updated>
<entry>
<title>apparmor: fix SECURITY_APPARMOR_HASH_DEFAULT parameter handling</title>
<updated>2016-07-27T07:39:26Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2016-07-25T17:59:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7616ac70d1bb4f2e9d25c1a82d283f3368a7b632'/>
<id>urn:sha1:7616ac70d1bb4f2e9d25c1a82d283f3368a7b632</id>
<content type='text'>
The newly added Kconfig option could never work and just causes a build error
when disabled:

security/apparmor/lsm.c:675:25: error: 'CONFIG_SECURITY_APPARMOR_HASH_DEFAULT' undeclared here (not in a function)
 bool aa_g_hash_policy = CONFIG_SECURITY_APPARMOR_HASH_DEFAULT;

The problem is that the macro undefined in this case, and we need to use the IS_ENABLED()
helper to turn it into a boolean constant.

Another minor problem with the original patch is that the option is even offered
in sysfs when SECURITY_APPARMOR_HASH is not enabled, so this also hides the option
in that case.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Fixes: 6059f71f1e94 ("apparmor: add parameter to control whether policy hashing is used")
Signed-off-by: John Johansen &lt;john.johansen@canonical.com&gt;
Signed-off-by: James Morris &lt;james.l.morris@oracle.com&gt;
</content>
</entry>
<entry>
<title>apparmor: fix arg_size computation for when setprocattr is null terminated</title>
<updated>2016-07-12T15:43:10Z</updated>
<author>
<name>John Johansen</name>
</author>
<published>2016-07-10T06:46:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d4d03f74a73f3b8b2801d4d02011b6b69778cbcc'/>
<id>urn:sha1:d4d03f74a73f3b8b2801d4d02011b6b69778cbcc</id>
<content type='text'>
Signed-off-by: John Johansen &lt;john.johansen@canonical.com&gt;
</content>
</entry>
<entry>
<title>apparmor: fix oops, validate buffer size in apparmor_setprocattr()</title>
<updated>2016-07-12T15:43:10Z</updated>
<author>
<name>Vegard Nossum</name>
</author>
<published>2016-07-07T20:41:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e89b8081327ac9efbf273e790b8677e64fd0361a'/>
<id>urn:sha1:e89b8081327ac9efbf273e790b8677e64fd0361a</id>
<content type='text'>
When proc_pid_attr_write() was changed to use memdup_user apparmor's
(interface violating) assumption that the setprocattr buffer was always
a single page was violated.

The size test is not strictly speaking needed as proc_pid_attr_write()
will reject anything larger, but for the sake of robustness we can keep
it in.

SMACK and SELinux look safe to me, but somebody else should probably
have a look just in case.

Based on original patch from Vegard Nossum &lt;vegard.nossum@oracle.com&gt;
modified for the case that apparmor provides null termination.

Fixes: bb646cdb12e75d82258c2f2e7746d5952d3e321a
Reported-by: Vegard Nossum &lt;vegard.nossum@oracle.com&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: John Johansen &lt;john.johansen@canonical.com&gt;
Cc: Paul Moore &lt;paul@paul-moore.com&gt;
Cc: Stephen Smalley &lt;sds@tycho.nsa.gov&gt;
Cc: Eric Paris &lt;eparis@parisplace.org&gt;
Cc: Casey Schaufler &lt;casey@schaufler-ca.com&gt;
Cc: stable@kernel.org
Signed-off-by: John Johansen &lt;john.johansen@canonical.com&gt;
Reviewed-by: Tyler Hicks &lt;tyhicks@canonical.com&gt;
Signed-off-by: James Morris &lt;james.l.morris@oracle.com&gt;
</content>
</entry>
<entry>
<title>apparmor: fix module parameters can be changed after policy is locked</title>
<updated>2016-07-12T15:43:10Z</updated>
<author>
<name>John Johansen</name>
</author>
<published>2016-06-23T01:01:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=58acf9d911c8831156634a44d0b022d683e1e50c'/>
<id>urn:sha1:58acf9d911c8831156634a44d0b022d683e1e50c</id>
<content type='text'>
the policy_lock parameter is a one way switch that prevents policy
from being further modified. Unfortunately some of the module parameters
can effectively modify policy by turning off enforcement.

split policy_admin_capable into a view check and a full admin check,
and update the admin check to test the policy_lock parameter.

Signed-off-by: John Johansen &lt;john.johansen@canonical.com&gt;
</content>
</entry>
<entry>
<title>apparmor: add parameter to control whether policy hashing is used</title>
<updated>2016-07-12T15:43:10Z</updated>
<author>
<name>John Johansen</name>
</author>
<published>2014-10-24T16:16:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6059f71f1e94486a51cef90e872add11fa7b5775'/>
<id>urn:sha1:6059f71f1e94486a51cef90e872add11fa7b5775</id>
<content type='text'>
Signed-off-by: John Johansen &lt;john.johansen@canonical.com&gt;
Acked-by: Tyler Hicks &lt;tyhicks@canonical.com&gt;
Acked-by: Seth Arnold &lt;seth.arnold@canonical.com&gt;
</content>
</entry>
<entry>
<title>constify security_path_{link,rename}</title>
<updated>2016-03-28T04:47:36Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2016-03-25T19:27:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ccee46ab487d5b87d0621824efe2500b2857c58'/>
<id>urn:sha1:3ccee46ab487d5b87d0621824efe2500b2857c58</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>apparmor: remove useless checks for NULL -&gt;mnt</title>
<updated>2016-03-28T04:47:28Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2016-03-25T19:22:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8db0185659c33143915768bdd33fc2fb1b1cbb58'/>
<id>urn:sha1:8db0185659c33143915768bdd33fc2fb1b1cbb58</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>constify security_path_{mkdir,mknod,symlink}</title>
<updated>2016-03-28T04:47:27Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2016-03-25T19:21:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d360775217070ff0f4291e47d3f568f0fe0b7374'/>
<id>urn:sha1:d360775217070ff0f4291e47d3f568f0fe0b7374</id>
<content type='text'>
... as well as unix_mknod() and may_o_create()

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>constify security_path_{unlink,rmdir}</title>
<updated>2016-03-28T04:47:27Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2016-03-25T19:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=989f74e0500a1e136d369bb619adc22786ea5e68'/>
<id>urn:sha1:989f74e0500a1e136d369bb619adc22786ea5e68</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>apparmor: constify common_perm_...()</title>
<updated>2016-03-28T04:47:26Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2016-03-25T19:10:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d6b49f7ad2f38b5c3af27ac1a6f475b1ec13ea6e'/>
<id>urn:sha1:d6b49f7ad2f38b5c3af27ac1a6f475b1ec13ea6e</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
</feed>
