summaryrefslogtreecommitdiff
path: root/src/shared/mkdir-label.c
Commit message (Collapse)AuthorAgeFilesLines
* basic,shared: move a bunch of files to src/shared/Zbigniew Jędrzejewski-Szmek2021-06-241-0/+59
| | | | | | | | | | | | The goal is to move everything that requires selinux or smack away from src/basic/. This means that src/basic/label.[ch] must move, which implies btrfs-util.[ch], copy.[ch], and a bunch of other files which form a cluster of internal use. This is just moving text around, so there should be no functional difference. test-blockdev-util is new, because path_is_encrypted() is moved to blockdev-util.c, and so far we didn't have any tests for code there.
* build-sys: split internal basic/ library from shared/Kay Sievers2015-06-111-39/+0
| | | | | | | | | | basic/ can be used by everything cannot use anything outside of basic/ libsystemd/ can use basic/ cannot use shared/ shared/ can use libsystemd/
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-231-6/+0
| | | | | | This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
* label: unify code to make directories, symlinksLennart Poettering2014-10-231-28/+3
|
* label: don't try to create labelled directories more than onceLennart Poettering2014-10-231-10/+5
|
* smack: rework SMACK label fixing code to follow more closely the semantics ↵Lennart Poettering2014-10-231-1/+1
| | | | of the matching selinux code
* mac: rename all calls that apply a label mac_{selinux|smack}_apply_xyz(), ↵Lennart Poettering2014-10-231-1/+1
| | | | | | | and all that reset it to defaults mac_{selinux|smack}_fix() Let's clean up the naming schemes a bit and use the same one for SMACK and for SELINUX.
* mac: also rename use_{smack,selinux,apparmor}() calls so that they share the ↵Lennart Poettering2014-10-231-2/+2
| | | | new mac_{smack,selinux,apparmor}_xyz() convention
* mac: rename apis with mac_{selinux/smack}_ prefixWaLyong Cho2014-10-231-2/+2
|
* label: rearrange mandatory access control(MAC) apisWaLyong Cho2014-10-231-0/+26
| | | | move label apis to selinux-util.ch or smack-util.ch appropriately.
* shared: remove unused functionsRonny Chevalier2014-10-211-4/+0
| | | | | - mkdir_p_prefix: It has never been used - mkdir_parents_prefix_label: Unused since 1434ae6fd49f8377b0ddbd4c675736e0d3226ea6
* shared: split mkdir_*() and mkdir_*_label() from each otherKay Sievers2013-07-261-0/+53
Avoid pulling-in selinux for tools which just create directories but not need to fix the selinux label.