Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

many: update apparmor to 4.0.1 #14150

Merged
merged 17 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions build-aux/snap/local/apparmor/af_names.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
/*
this file was generated on a Ubuntu kinetic install from the upstream
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably remove this file once we have moved to using core24 as build base. Right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit of an annoying part. The parser looks at the host's socket.h file to determine what kind of sockets one can create and to know their names.

If the snap is built on an old system, where the definition of old is always inaccurate. In theory we could drop it but we'd alwayd be at the risk of compiling but silently failing to understand specific network types.

apparmor-3.0.7 release tarball as follows:
this file was generated on a Ubuntu mantic install from the upstream
apparmor-4.0.1 release tarball as follows:

AA_VER=3.0.7
AA_VER=4.0.1
TARBALL_NAME="apparmor-v${AA_VER}"
wget \
"https://launchpad.net/apparmor/3.0/${AA_VER}/+download/apparmor-${AA_VER}.tar.gz"
tar xf "apparmor-${AA_VER}.tar.gz"
cd "apparmor-${AA_VER}"
"https://gitlab.com/apparmor/apparmor/-/archive/v${AA_VER}/${TARBALL_NAME}.tar.gz"
tar xf "${TARBALL_NAME}.tar.gz"
cd "${TARBALL_NAME}"
make -C parser af_names.h
cp ./parser/af_names.h <path-to-this-file>
# manually append this header

*/
#ifndef AF_UNSPEC
Expand Down
Loading
Loading