lib/apparmortest.pm

Apparmor Tests

Apparmor tests

aa_tmp_prof_prepare

 aa_tmp_prof_prepare();

Prepare apparmor profile directory

aa_tmp_prof_verify

 aa_tmp_prof_verify();

Verify that program can start with temporary profiles and then restore to the enforce status with normal profiles

aa_tmp_prof_clean

 aa_tmp_prof_clean();

Remove appamor temporary profiles

get_named_profiled

 get_named_profiled();

Get the named profile for an executable program

aa_status_stdout_check

 aa_status_stdout_check();

Check the output of aa-status: if a given profile belongs to a given mode

ip_fetch

 ip_fetch();

Fetch ip details

setup_mail_server_postfix_dovecot

 setup_mail_server_postfix_dovecot();

Set up mail server with Postfix and Dovecot:

send_mail_smtp

 send_mail_smtp();

Send mail with telnet SMTP by using script_run_interactive

Retrieve email with POP3

 retrieve_mail_pop3

Retrieve email with POP3 by using script_run_interactive

retrieve_mail_imap

 retrieve_mail_imap();

Retrieve email with IMAP by using script_run_interactive

mariadb_setup

 mariadb_setup();

Set up Mariadb and test account by using zypper_call, assert_script_run, script_run_interactive

adminer_setup

 adminer_setup();

Set up Web environment for running Adminer by:

adminer_database_delete

 adminer_database_delete();

Log in Adminer, seletct "test" database and delete it

upload_logs_mail

 upload_logs_mail();

Upload mail warn, err and info logs for reference

pre_run_hook

 pre_run_hook();

Restart auditd and apparmor in root-console

post_fail_hook

 post_fail_hook();

Run post_fail_hook and upload audit logs