2019/03/29 18:55:40.090235 cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context of /home/foo/snap: exec: "matchpathcon": executable file not found in $PATH

See original GitHub issue

Environment data

2019/03/29 18:55:40.090235 cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context of /home/foo/snap: exec: “matchpathcon”: executable file not found in $PATH


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
bboozzoocommented, Apr 26, 2019

I’ve described a workaround here: https://forum.snapcraft.io/t/selinux-warning-when-running-lxc/11100/11 TLDR: install selinux-policy-default, set SELINUX=disabled in /etc/selinux/config and reboot the system.

3reactions
blinkeyecommented, Apr 26, 2019

I’m running Ubuntu 18.04, so I’ve tested with the latest 5.0.9 kernel (still the same warning). To workaround I’ve updated /etc/default/grub and added GRUB_CMDLINE_LINUX="selinux=0" and regenerated the grub config with sudo update-grub and rebooted: warning gone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selinux warning when running lxc - snapd
What could cause this warning? I'm on Ubuntu 19.04 now cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context.
Read more >
Every snap gives "create user data directory" after upgrade ...
cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context of /home/hackel/snap: exec: "matchpathcon": ...
Read more >
20.04 - "WARNING: cannot create user data directory ...
"WARNING: cannot create user data directory: cannot determine SELinux status: failed to obtain SELinux mount path" warning by snap · it is a ......
Read more >
Getting a error from selinux when launching text editor ...
EDIT: The error message seems to say that matchpathcon can't be found in the PATH. Surely this should help you start the troubleshooting...
Read more >
failed to verify SELinux context of /home/idea/snap: exec: " ...
WARNING : cannot create user data directory: failed to verify SELinux context of ... exec: "matchpathcon": executable file not found in $PATH.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found