Skip to content
  • John Johansen's avatar
    Add the ability to mediate signals. · b222731c
    John Johansen authored
    
    
    Add signal rules and make sure the parser encodes support for them
    if the supported feature set reports supporting them.
    
    The current format of the signal rule is
    
      [audit] [deny] signal [<signal_perms>] [<signal_set>] <target_profile>,
    
      signal_perm  := 'send'|'receive'|'r'|'w'|'rw'
      signal_perms := <signal_perm> | '(' <signal_perm> ([,]<signal_perm>)* ')'
      signal := ("hup"|"int"|"quit"|"ill"|"trap"|"abrt"|"bus"|"fpe"|"kill"|
                 "usr1"|"segv"|"usr2"|"pipe"|"alrm"|"term"|"tkflt"|"chld"|
                 "cont"|"stop"|"stp"|"ttin"|"ttou"|"urg"|"xcpu"|"xfsz"|"vtalrm"|
                 "prof"|"winch"|"io"|"pwr"|"sys"|"emt"|"exists")
      signal_set   := set=<signal> | '(' <signal> ([,]<signal>)* ')'
    
    
    it does not currently follow the peer=() format, and there is some question
    as to whether it should or not. Input welcome.
    
    Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
    Acked-by: default avatarSeth Arnold <seth.arnold@canonical.com>
    b222731c