Commit 9d107ab
committed
libsemanage: Set new restorecon handle before doing restorecon
In semanage_setfiles(), need to reset the restorecon handle to make
sure restorecon is not operating on old selabel data.
This fixes commit d96f27b ("libsemanage: Preserve file context
and ownership in policy store") which could cause restorecon to use
old data.
Reported-by: Petr Lautrbach <[email protected]>
Signed-off-by: James Carter <[email protected]>
Acked-by: Petr Lautrbach <[email protected]>1 parent 45fdf23 commit 9d107ab
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3012 | 3012 | | |
3013 | 3013 | | |
3014 | 3014 | | |
| 3015 | + | |
| 3016 | + | |
3015 | 3017 | | |
3016 | 3018 | | |
3017 | 3019 | | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
3018 | 3023 | | |
3019 | 3024 | | |
3020 | 3025 | | |
| |||
0 commit comments