• M
    security_dac: Allow selective remember/recall for chardevs · 2b44cf8c
    Michal Privoznik 提交于
    While in most cases we want to remember/recall label for a
    chardev, there are some special ones (like /dev/tpm0) where we
    don't want to remember the seclabel nor recall it. See next
    commit for rationale behind.
    
    While the easiest way to implement this would be to just add new
    argument to virSecurityDACSetChardevLabel() this one is also a
    callback for virSecurityManagerSetChardevLabel() and thus has
    more or less stable set of arguments. Therefore, the current
    virSecurityDACSetChardevLabel() is renamed to
    virSecurityDACSetChardevLabelHelper() and the original function
    is set to call the new one.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    Reviewed-by: NCole Robinson <crobinso@redhat.com>
    2b44cf8c
security_dac.c 75.1 KB