diff options
| author | Ondrej Mosnacek <[email protected]> | 2021-04-02 08:56:18 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2021-04-02 15:46:37 +0000 |
| commit | 442dc00f82a9727dc0c48c44f792c168f593c6df (patch) | |
| tree | 056a44fd675c1b4f0032a2566bf7968d3585af3e /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | |
| parent | selinuxfs: unify policy load error reporting (diff) | |
| download | kernel-442dc00f82a9727dc0c48c44f792c168f593c6df.tar.gz kernel-442dc00f82a9727dc0c48c44f792c168f593c6df.zip | |
selinux: make nslot handling in avtab more robust
1. Make sure all fileds are initialized in avtab_init().
2. Slightly refactor avtab_alloc() to use the above fact.
3. Use h->nslot == 0 as a sentinel in the access functions to prevent
dereferencing h->htable when it's not allocated.
Cc: [email protected]
Signed-off-by: Ondrej Mosnacek <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions
