With loaded_policy set to true mount_setup() relabels /dev properly.
goto finish;
if (ima_setup() < 0)
goto finish;
goto finish;
if (ima_setup() < 0)
goto finish;
+ if (smack_setup(&loaded_policy) < 0)
goto finish;
dual_timestamp_get(&security_finish_timestamp);
}
goto finish;
dual_timestamp_get(&security_finish_timestamp);
}
+int smack_setup(bool *loaded_policy) {
+ assert(loaded_policy);
+
r = write_rules("/sys/fs/smackfs/load2", SMACK_CONFIG);
switch(r) {
case -ENOENT:
r = write_rules("/sys/fs/smackfs/load2", SMACK_CONFIG);
switch(r) {
case -ENOENT:
+ *loaded_policy = true;
+
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+int smack_setup(bool *loaded_policy);