-
Notifications
You must be signed in to change notification settings - Fork 574
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
c/snap-confine, i/udev, i/ifacetest: update snap-confine and snap-device-helper to understand component hook security tags #13775
c/snap-confine, i/udev, i/ifacetest: update snap-confine and snap-device-helper to understand component hook security tags #13775
Commits on Jul 8, 2024
-
i/udev, c/snap-confine, c/libsnap-confine-private, c/snap-device-help…
…er: update snap-confine to be able to handle security tags that come from component hooks An example of a security tag from a component hook would be: "snap.name+comp.hook.install" And one with an instance key: "snap.name_instance+comp.hook.install" Something important to note is how these are encoded as udev tags. Currently, when converting a security tag to a udev tag, we replace all '.' characters in the tag with '_' characters because systemd limits udev tags to having only alphanumeric characters, with the addition of the characters '-' and '_'. Since security tags can now contain '+' characters, those will be encoded as two consecutive '_' characters. For example: "snap.name+comp.hook.install" -> "snap_name__comp_hook_install" "snap.name_instance+comp.hook.install" -> "snap_name_instance__comp_hook_install" This allows the conversion to maintain its reversibility.
Configuration menu - View commit details
-
Copy full SHA for c4fc2d4 - Browse repository at this point
Copy the full SHA c4fc2d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9048d15 - Browse repository at this point
Copy the full SHA 9048d15View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0c8a3e - Browse repository at this point
Copy the full SHA b0c8a3eView commit details -
c/libsnap-confine-private: rename sc_snap_or_component_name_validate …
…to validate_as_snap_or_component_name
Configuration menu - View commit details
-
Copy full SHA for 7643859 - Browse repository at this point
Copy the full SHA 7643859View commit details -
c/libsnap-confine-private: rework validate_as_snap_or_component_name …
…to take in error details
Configuration menu - View commit details
-
Copy full SHA for 2f7eab6 - Browse repository at this point
Copy the full SHA 2f7eab6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f21dac - Browse repository at this point
Copy the full SHA 3f21dacView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7ad65e - Browse repository at this point
Copy the full SHA b7ad65eView commit details -
c/libsnap-confine-private: test a few more cases in sc_snap_component…
…_validate Make sure it fails to validate component names with instance keys, test that we fail to validate a component name that matches against a wrong instance key.
Configuration menu - View commit details
-
Copy full SHA for 5415317 - Browse repository at this point
Copy the full SHA 5415317View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cabf43 - Browse repository at this point
Copy the full SHA 6cabf43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a00500 - Browse repository at this point
Copy the full SHA 5a00500View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bb442b - Browse repository at this point
Copy the full SHA 0bb442bView commit details
Commits on Jul 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ab7d138 - Browse repository at this point
Copy the full SHA ab7d138View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76555de - Browse repository at this point
Copy the full SHA 76555deView commit details -
Configuration menu - View commit details
-
Copy full SHA for ebff4c1 - Browse repository at this point
Copy the full SHA ebff4c1View commit details
Commits on Jul 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fc05b1b - Browse repository at this point
Copy the full SHA fc05b1bView commit details
Commits on Jul 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c9a216b - Browse repository at this point
Copy the full SHA c9a216bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1dc0d6 - Browse repository at this point
Copy the full SHA b1dc0d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98e8fa9 - Browse repository at this point
Copy the full SHA 98e8fa9View commit details