[fix] sessiond: Correct handling of the TRANSMUTE attribute 75/280475/6
authorAdam Michalski <a.michalski2@partner.samsung.com>
Tue, 30 Aug 2022 12:39:13 +0000 (14:39 +0200)
committerAdam Michalski <a.michalski2@partner.samsung.com>
Thu, 1 Sep 2022 11:04:00 +0000 (13:04 +0200)
commitc540061bc4875fdd981da328b477d3ef22c72129
tree60b6708399f857c2157363493865b9a0bd035ba0
parentb863fa70c28ab2704c69c3593c32245bd2a27352
[fix] sessiond: Correct handling of the TRANSMUTE attribute

Due to its different nature (being inheritable) it wasn't handled
properly in some cases (e.g., for subdirectories that had it set
to false whose parent was set to true).

Also significantly simplified the logic by adding a helper function
and refactoring the `copy_smack_attributes` routine.

Change-Id: I3ee146056682e2380932fdd9052efe25e5d7f735
Co-author: Michal Bloch <m.bloch@samsung.com>
CMakeLists.txt
sessiond/src/fs_helpers.cpp
sessiond/src/fs_helpers.h