mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
- Add AF_ISDN to filtered list of AF tags
- Restructure filter sed script to be shorter - Add a make check target which is equiv to make tests
This commit is contained in:
parent
6b793b1a8b
commit
cc923edf3c
2 changed files with 21 additions and 8 deletions
|
@ -193,7 +193,7 @@ struct codomain *do_local_profile(struct codomain *cod, char *name, int mode, in
|
|||
%%
|
||||
|
||||
|
||||
list: aliaslist varlist profilelist
|
||||
list: preamble profilelist
|
||||
{ /* nothing */ };
|
||||
|
||||
profilelist: { /* nothing */ };
|
||||
|
@ -260,8 +260,9 @@ profile: opt_profile_flag TOK_COLON TOK_ID TOK_COLON TOK_ID flags TOK_OPEN rules
|
|||
$$ = cod;
|
||||
};
|
||||
|
||||
aliaslist: { /* nothing */ }
|
||||
| aliaslist alias { /* nothing */ };
|
||||
preamble: { /* nothing */ }
|
||||
| preamble alias { /* nothing */ };
|
||||
| preamble varassign { /* nothing */ };
|
||||
|
||||
alias: TOK_ALIAS TOK_ID TOK_ARROW TOK_ID TOK_END_OF_RULE
|
||||
{
|
||||
|
@ -271,11 +272,6 @@ alias: TOK_ALIAS TOK_ID TOK_ARROW TOK_ID TOK_END_OF_RULE
|
|||
free($4);
|
||||
};
|
||||
|
||||
varlist: { /* nothing */ }
|
||||
|
||||
varlist: varlist varassign
|
||||
{ /* nothing */ }
|
||||
|
||||
varassign: TOK_SET_VAR TOK_EQUALS valuelist
|
||||
{
|
||||
struct value_list *list = $3;
|
||||
|
|
17
parser/tst/simple_tests/alias_good_2.sd
Normal file
17
parser/tst/simple_tests/alias_good_2.sd
Normal file
|
@ -0,0 +1,17 @@
|
|||
#=DESCRIPTION Simple test of alias functionality after var defn
|
||||
#=EXRESULT PASS
|
||||
|
||||
alias /etc -> /Etcetera,
|
||||
|
||||
@{FOO}= foo bar
|
||||
|
||||
alias /tmp -> /var/tmp,
|
||||
|
||||
@{MEEP} = meep moop
|
||||
|
||||
alias /usr -> /User,
|
||||
|
||||
/bin/foo {
|
||||
#include <includes/base>
|
||||
/tmp/@{FOO}/@{MEEP} rw,
|
||||
}
|
Loading…
Add table
Reference in a new issue