indeed i havent
I've installed apparmor-profiles together with Suggested packages:
apparmor-profiles-extra apparmor-utils
Code: Select all
$ sudo apt install apparmor-profiles
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apparmor libapparmor-perl
Suggested packages:
apparmor-profiles-extra apparmor-utils
The following NEW packages will be installed:
apparmor apparmor-profiles libapparmor-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 689 kB of archives.
After this operation, 2,426 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.es.debian.org/debian stretch/main amd64 libapparmor-perl amd64 2.11.0-3+deb9u2 [82.2 kB]
Get:2 http://ftp.es.debian.org/debian stretch/main amd64 apparmor amd64 2.11.0-3+deb9u2 [525 kB]
Get:3 http://ftp.es.debian.org/debian stretch/main amd64 apparmor-profiles all 2.11.0-3+deb9u2 [81.1 kB]
Fetched 689 kB in 0s (692 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libapparmor-perl.
(Reading database ... 264142 files and directories currently installed.)
Preparing to unpack .../libapparmor-perl_2.11.0-3+deb9u2_amd64.deb ...
Unpacking libapparmor-perl (2.11.0-3+deb9u2) ...
Selecting previously unselected package apparmor.
Preparing to unpack .../apparmor_2.11.0-3+deb9u2_amd64.deb ...
Unpacking apparmor (2.11.0-3+deb9u2) ...
Selecting previously unselected package apparmor-profiles.
Preparing to unpack .../apparmor-profiles_2.11.0-3+deb9u2_all.deb ...
Unpacking apparmor-profiles (2.11.0-3+deb9u2) ...
Processing triggers for systemd (232-25+deb9u11) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libapparmor-perl (2.11.0-3+deb9u2) ...
Setting up apparmor (2.11.0-3+deb9u2) ...
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service → /lib/systemd/system/apparmor.service.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
diff: /var/lib/apparmor/profiles/.apparmor.md5sums: No such file or directory
Setting up apparmor-profiles (2.11.0-3+deb9u2) ...
Processing triggers for systemd (232-25+deb9u11) ...
Code: Select all
$ sudo apt install apparmor-profiles-extra
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
apparmor-profiles-extra
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,598 B of archives.
After this operation, 45.1 kB of additional disk space will be used.
Get:1 http://ftp.es.debian.org/debian stretch/main amd64 apparmor-profiles-extra all 1.11 [8,598 B]
Fetched 8,598 B in 0s (32.2 kB/s)
Selecting previously unselected package apparmor-profiles-extra.
(Reading database ... 264434 files and directories currently installed.)
Preparing to unpack .../apparmor-profiles-extra_1.11_all.deb ...
Unpacking apparmor-profiles-extra (1.11) ...
Setting up apparmor-profiles-extra (1.11) ..
Code: Select all
$ sudo apt install apparmor-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-apparmor python3-libapparmor
Suggested packages:
vim-addon-manager
The following NEW packages will be installed:
apparmor-utils python3-apparmor python3-libapparmor
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 312 kB of archives.
After this operation, 951 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.es.debian.org/debian stretch/main amd64 python3-libapparmor amd64 2.11.0-3+deb9u2 [78.2 kB]
Get:2 http://ftp.es.debian.org/debian stretch/main amd64 python3-apparmor amd64 2.11.0-3+deb9u2 [130 kB]
Get:3 http://ftp.es.debian.org/debian stretch/main amd64 apparmor-utils amd64 2.11.0-3+deb9u2 [103 kB]
Fetched 312 kB in 0s (528 kB/s)
Selecting previously unselected package python3-libapparmor.
(Reading database ... 264447 files and directories currently installed.)
Preparing to unpack .../python3-libapparmor_2.11.0-3+deb9u2_amd64.deb ...
Unpacking python3-libapparmor (2.11.0-3+deb9u2) ...
Selecting previously unselected package python3-apparmor.
Preparing to unpack .../python3-apparmor_2.11.0-3+deb9u2_amd64.deb ...
Unpacking python3-apparmor (2.11.0-3+deb9u2) ...
Selecting previously unselected package apparmor-utils.
Preparing to unpack .../apparmor-utils_2.11.0-3+deb9u2_amd64.deb ...
Unpacking apparmor-utils (2.11.0-3+deb9u2) ...
Setting up python3-libapparmor (2.11.0-3+deb9u2) ...
Setting up python3-apparmor (2.11.0-3+deb9u2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up apparmor-utils (2.11.0-3+deb9u2) ...
Made check, all in place
Code: Select all
/sbin
$ ls a*
acpi_available agetty apm_available apparmor_parser autologin
After checking status ive got
Code: Select all
$ sudo apparmor_status
[sudo] password for mq:
apparmor module is loaded.
apparmor filesystem is not mounted.
'apparmor filesystem is not mounted.'
and during executing start command, something happened,
something changed,
What i've got is:
Code: Select all
$ sudo lxc-start -n gentooContainer -F
lxc-start: gentooContainer: lsm/apparmor.c: run_apparmor_parser: 808 Failed to run apparmor_parser on "/var/lib/lxc/gentooContainer/apparmor/lxc-gentooContainer_<-var-lib-lxc>": Warning: unable to find a suitable fs in /proc/mounts,
Use is it mounted? --subdomainfs to override.
lxc-start: gentooContainer: lsm/apparmor.c: remove_apparmor_namespace: 776 No such file or directory - Error removing AppArmor namespace
lxc-start: gentooContainer: lsm/apparmor.c: apparmor_prepare: 980 Failed to load generated AppArmor profile
lxc-start: gentooContainer: start.c: lxc_init: 899 Failed to initialize LSM
lxc-start: gentooContainer: start.c: __lxc_start: 1917 Failed to initialize container "gentooContainer"
lxc-start: gentooContainer: tools/lxc_start.c: main: 330 The container failed to start
lxc-start: gentooContainer: tools/lxc_start.c: main: 336 Additional information can be obtained by setting the --logfile and --logpriority options
At the first sight:
'unable to find a suitable fs in /proc/mounts,
Use is it mounted? --subdomainfs to override.'
Code: Select all
/proc
$ ls -l
lrwxrwxrwx 1 root root 11 Apr 30 14:39 mounts -> self/mounts
logs doesnt bring anything new
Code: Select all
$ sudo lxc-start -n gentooContainer --logfile mylogfile --logpriority debug
lxc-start: gentooContainer: lxccontainer.c: wait_on_daemonized_start: 833 No such file or directory - Failed to receive the container state
lxc-start: gentooContainer: tools/lxc_start.c: main: 330 The container failed to start
lxc-start: gentooContainer: tools/lxc_start.c: main: 333 To get more details, run the container in foreground mode
lxc-start: gentooContainer: tools/lxc_start.c: main: 336 Additional information can be obtained by setting the --logfile and --logpriority options