Repository navigation
Commit 5dee25d
selinux: initialize sock security class to default value
Initialize the security class of sock security structures
to the generic socket class. This is similar to what is
already done in inode_alloc_security for files. Generally
the sclass field will later by set by socket_post_create
or sk_clone or sock_graft, but for protocol implementations
that fail to call any of these for newly accepted sockets,
we want some sane default that will yield a legitimate
avc denied message with non-garbage values for class and
permission.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <pmoore@redhat.com>1 parent 9629d04 commit 5dee25d
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4559 | 4559 | | |
4560 | 4560 | | |
4561 | 4561 | | |
| 4562 | + | |
4562 | 4563 | | |
4563 | 4564 | | |
4564 | 4565 | | |
| |||
0 commit comments