Christian Göttsche eb1d2de0e9 set_selinux_file_context(): prepare context for actual file type
Search the SELinux selabel database for the file type to be created.
Not specifying the file mode can cause an incorrect file context to be
returned.

Also prepare contexts in commonio_close() for the generic database
filename, not with the backup suffix appended, to ensure the desired
file context after the final rename.

Closes: #322

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
2021-05-06 16:58:10 +02:00
..
2011-09-18 21:02:43 +00:00
2020-01-12 07:31:26 -06:00
2017-10-22 18:33:13 +00:00
2019-10-12 20:03:32 -05:00
2019-10-12 20:03:32 -05:00
2017-10-22 19:17:02 +00:00
2020-04-17 21:50:48 +02:00
2021-04-16 21:02:37 -05:00
2021-02-01 22:11:10 +01:00
2021-02-01 22:11:10 +01:00
2017-10-22 19:08:39 +00:00
2017-10-22 18:33:13 +00:00
2013-08-04 15:56:32 +02:00
2018-06-24 00:13:12 -05:00
2011-11-06 18:40:06 +00:00