psss / tests / selinux

Forked from tests/selinux 6 years ago
Clone

72a7f9e test if systemd-sleep can create new file in /sys/power directory

2 files Authored by mmalik 2 years ago, Committed by mmalik 2 years ago,
    test if systemd-sleep can create new file in /sys/power directory
    
    Recent testing of the hybrid-sleep service on RHEL-8 revealed that
    SELinux prevents the systemd-sleep process from creating the state
    file in /sys/power/ directory.
    
    I believe this action should be allowed, because the behavior is
    expected, the scenario is supported and security is not violated.
    
    Unfortunately, the TC cannot reproduce the scenario because it's
    difficult to wake up the machine after invoking the hybrid-sleep
    service.
    
    The TC looks for appropriate policy rules and file context patterns.
    
    The TC covers BZ#1968610.