Files
snapd/interfaces/apparmor
Michael Vogt 89374671a0 interfaces: allow python3.10+ in the default template
Currently snaps that use python3.10 from core22 will fail on older
releases of ubuntu:
```
$ sudo snap install test-snapd-sh-core22
$ test-snapd-sh-core22.sh -c 'python3 -c "import ssl"'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.10/ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: /usr/lib/python3.10/lib-dynload/_ssl.cpython-310-x86_64-linux-gnu.so: failed to map segment from shared object
```

It turns out our apparmor template only allows:
```
  /usr/lib{,32,64}/python3.[0-9]/lib-dynload/*.so      mr,
```
so anything beyond `python3.9` will not work. This commit adds a
regression test and allows for `/python3.[0-9]*/` to fix the
issue.
2022-11-23 16:24:17 +01:00
..
2022-05-16 09:01:57 +02:00