mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Bah, the last commit message was wrong; it added support for mixing
alias rules and variable declarations within the preamble of a profile. This commit adds another testcase for alias rules; one in which there is an overlapping pair of aliases. The parser parses it, but based on -dd output, I don't believe it's treating it properly.
This commit is contained in:
parent
cc923edf3c
commit
96e124bf8d
2 changed files with 15 additions and 1 deletions
|
@ -136,7 +136,7 @@ apparmor_parser: $(OBJECTS) $(PCREOBJECTS) $(AAREOBJECTS)
|
|||
${LEXLIB} $(AAREOBJECTS) -static-libgcc -L.
|
||||
|
||||
parser_yacc.c parser_yacc.h: parser_yacc.y parser.h
|
||||
$(YACC) $(YFLAGS) -o parser_yacc.c parser_yacc.y
|
||||
$(YACC) $(YFLAGS) -o parser_yacc.c parser_yacc.y
|
||||
|
||||
parser_lex.c: parser_lex.l parser_yacc.h parser.h
|
||||
$(LEX) ${LEXFLAGS} -o$@ $<
|
||||
|
|
14
parser/tst/simple_tests/alias_good_3.sd
Normal file
14
parser/tst/simple_tests/alias_good_3.sd
Normal file
|
@ -0,0 +1,14 @@
|
|||
#=DESCRIPTION Simple test of alias functionality
|
||||
#=EXRESULT PASS
|
||||
|
||||
@{MEEP} = meep moop
|
||||
alias /etc -> /Etcetera,
|
||||
alias /tmp -> /var/tmp,
|
||||
alias /usr/lib/ -> /Libraries/,
|
||||
alias /usr -> /User,
|
||||
@{FOO} = foo bar
|
||||
|
||||
/bin/foo {
|
||||
#include <includes/base>
|
||||
/tmp/@{FOO}/@{MEEP} rw,
|
||||
}
|
Loading…
Add table
Reference in a new issue