Commit e6b5ebc
committed
selinux: cleanup selinux_lsm_getattr()
A number of small changes to selinux_lsm_getattr() to improve the
quality and readability of the code:
* Explicitly set the `value` parameter to NULL in the case where an
attribute has not been set.
* Rename the `__tsec` variable to `tsec` to better fit the SELinux code.
* Rename `bad` to `err_unlock` to better indicate the jump target drops
the RCU lock.
Signed-off-by: Paul Moore <paul@paul-moore.com>1 parent 0142c56 commit e6b5ebc
1 file changed
Lines changed: 18 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6348 | 6348 | | |
6349 | 6349 | | |
6350 | 6350 | | |
6351 | | - | |
6352 | | - | |
| 6351 | + | |
6353 | 6352 | | |
6354 | | - | |
| 6353 | + | |
| 6354 | + | |
6355 | 6355 | | |
6356 | 6356 | | |
6357 | | - | |
6358 | | - | |
6359 | | - | |
6360 | | - | |
| 6357 | + | |
| 6358 | + | |
| 6359 | + | |
6361 | 6360 | | |
6362 | 6361 | | |
6363 | | - | |
| 6362 | + | |
6364 | 6363 | | |
6365 | | - | |
6366 | 6364 | | |
6367 | 6365 | | |
6368 | | - | |
| 6366 | + | |
6369 | 6367 | | |
6370 | 6368 | | |
6371 | | - | |
| 6369 | + | |
6372 | 6370 | | |
6373 | 6371 | | |
6374 | | - | |
| 6372 | + | |
6375 | 6373 | | |
6376 | 6374 | | |
6377 | | - | |
| 6375 | + | |
6378 | 6376 | | |
6379 | 6377 | | |
6380 | | - | |
| 6378 | + | |
6381 | 6379 | | |
6382 | 6380 | | |
6383 | | - | |
| 6381 | + | |
6384 | 6382 | | |
6385 | 6383 | | |
6386 | 6384 | | |
6387 | | - | |
| 6385 | + | |
6388 | 6386 | | |
6389 | 6387 | | |
6390 | 6388 | | |
6391 | | - | |
| 6389 | + | |
| 6390 | + | |
6392 | 6391 | | |
| 6392 | + | |
6393 | 6393 | | |
6394 | 6394 | | |
6395 | 6395 | | |
6396 | 6396 | | |
6397 | 6397 | | |
6398 | 6398 | | |
6399 | | - | |
| 6399 | + | |
6400 | 6400 | | |
6401 | 6401 | | |
6402 | 6402 | | |
| |||
0 commit comments