<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/security/selinux/ss/policydb.c, branch v4.17-rc7</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v4.17-rc7</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v4.17-rc7'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2017-08-17T19:32:55+00:00</updated>
<entry>
<title>selinux: update my email address</title>
<updated>2017-08-17T19:32:55+00:00</updated>
<author>
<name>Stephen Smalley</name>
<email>sds@tycho.nsa.gov</email>
</author>
<published>2017-08-17T17:32:36+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=7efbb60b455115f6027e76c45ec548436115f72c'/>
<id>urn:sha1:7efbb60b455115f6027e76c45ec548436115f72c</id>
<content type='text'>
Update my email address since epoch.ncsc.mil no longer exists.
MAINTAINERS and CREDITS are already correct.

Signed-off-by: Stephen Smalley &lt;sds@tycho.nsa.gov&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
<entry>
<title>selinux: Create policydb version for Infiniband support</title>
<updated>2017-05-23T16:27:32+00:00</updated>
<author>
<name>Daniel Jurgens</name>
<email>danielj@mellanox.com</email>
</author>
<published>2017-05-19T12:48:55+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=a806f7a1616f29b80749d708115a643c1f4ba056'/>
<id>urn:sha1:a806f7a1616f29b80749d708115a643c1f4ba056</id>
<content type='text'>
Support for Infiniband requires the addition of two new object contexts,
one for infiniband PKeys and another IB Ports. Added handlers to read
and write the new ocontext types when reading or writing a binary policy
representation.

Signed-off-by: Daniel Jurgens &lt;danielj@mellanox.com&gt;
Reviewed-by: Eli Cohen &lt;eli@mellanox.com&gt;
Reviewed-by: James Morris &lt;james.l.morris@oracle.com&gt;
Acked-by: Doug Ledford &lt;dledford@redhat.com&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
<entry>
<title>selinux: Return directly after a failed memory allocation in policydb_index()</title>
<updated>2017-05-23T14:23:12+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2017-04-04T08:20:46+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=62934ffb9e5f9a904c83f571590631b766d68d12'/>
<id>urn:sha1:62934ffb9e5f9a904c83f571590631b766d68d12</id>
<content type='text'>
Replace five goto statements (and previous variable assignments) by
direct returns after a memory allocation failure in this function.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
<entry>
<title>selinux: Fix an uninitialized variable bug</title>
<updated>2017-03-31T19:16:18+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2017-03-31T15:21:18+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=cae303df3f379f04ce7efadb2e30de460918b302'/>
<id>urn:sha1:cae303df3f379f04ce7efadb2e30de460918b302</id>
<content type='text'>
We removed this initialization as a cleanup but it is probably required.

The concern is that "nel" can be zero.  I'm not an expert on SELinux
code but I think it looks possible to write an SELinux policy which
triggers this bug.  GCC doesn't catch this, but my static checker does.

Fixes: 9c312e79d6af ("selinux: Delete an unnecessary variable initialisation in range_read()")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Stephen Smalley &lt;sds@tycho.nsa.gov&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
<entry>
<title>selinux: Return directly after a failed kzalloc() in roles_init()</title>
<updated>2017-03-29T15:39:17+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2017-01-15T11:10:09+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ebd2b47ba52760e9653456ba19032f79d734a343'/>
<id>urn:sha1:ebd2b47ba52760e9653456ba19032f79d734a343</id>
<content type='text'>
Return directly after a call of the function "kzalloc" failed
at the beginning.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
<entry>
<title>selinux: Return directly after a failed kzalloc() in perm_read()</title>
<updated>2017-03-29T15:30:51+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2017-01-15T10:20:13+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=7befb7514e5d53026e9fe4a6548f118a65a20a4f'/>
<id>urn:sha1:7befb7514e5d53026e9fe4a6548f118a65a20a4f</id>
<content type='text'>
Return directly after a call of the function "kzalloc" failed
at the beginning.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
<entry>
<title>selinux: Return directly after a failed kzalloc() in common_read()</title>
<updated>2017-03-29T15:29:11+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2017-01-15T10:15:19+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=442ca4d656645505346017c37ac137cde680bf38'/>
<id>urn:sha1:442ca4d656645505346017c37ac137cde680bf38</id>
<content type='text'>
Return directly after a call of the function "kzalloc" failed
at the beginning.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
<entry>
<title>selinux: Return directly after a failed kzalloc() in class_read()</title>
<updated>2017-03-29T15:24:58+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2017-01-14T21:30:51+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=df4a14dfb484f95d81126e481e66b6e22eec49e8'/>
<id>urn:sha1:df4a14dfb484f95d81126e481e66b6e22eec49e8</id>
<content type='text'>
Return directly after a call of the function "kzalloc" failed
at the beginning.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
<entry>
<title>selinux: Return directly after a failed kzalloc() in role_read()</title>
<updated>2017-03-29T15:22:12+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2017-01-14T21:20:25+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ea6e2f7d12921f336def7398805ee3b1619e2f4b'/>
<id>urn:sha1:ea6e2f7d12921f336def7398805ee3b1619e2f4b</id>
<content type='text'>
Return directly after a call of the function "kzalloc" failed
at the beginning.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
<entry>
<title>selinux: Return directly after a failed kzalloc() in type_read()</title>
<updated>2017-03-29T15:20:07+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2017-01-14T21:15:54+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=549fe69ee5c7a7f55c34555032961a2265e6e713'/>
<id>urn:sha1:549fe69ee5c7a7f55c34555032961a2265e6e713</id>
<content type='text'>
Return directly after a call of the function "kzalloc" failed
at the beginning.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Paul Moore &lt;paul@paul-moore.com&gt;
</content>
</entry>
</feed>
