[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[augeas-devel] Rx.fs_path in keys (lens for apparmor)



Hello,

I'm trying to create lens for apparmor.
Simple entry for apparmor rule is something like

   /bin/bash ixr,

But if I describe lens as

  let rule = [ Util.indent . key Rx.fspath . Sep.space . store Rx.word
 . Util.del_str "," . Util.eol ]

I get the following exception:

    Failed to compile rule
    exception: The key regexp /[^ \t\n]+/ matches a '/'

Is it possible to use filesystem path as a key?



Thanks,
Serge



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]