Skip to content
  • Milan Broz's avatar
    Check for bad device-mapper name early · 021e5c31
    Milan Broz authored
    There is no need to unlock keyslot if the provided name
    has wrong format. Let's check for length and '/' in name early.
    
    Note that other commands could accept path to the device
    as libdevmapper translate it to the name (status /dev/mapper/xxx).
    Add early check only to activate commands.
    
    It still can fail later because of mangled characters.
    
    Fixes: #893
    021e5c31