| Server IP : 127.0.1.1 / Your IP : 216.73.216.173 Web Server : Apache/2.4.52 (Ubuntu) System : Linux bahcrestlinepropertiesllc 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /snap/snapd/28254/usr/lib/snapd/apparmor.d/abstractions/ |
Upload File : |
# vim:ft=apparmor
# ------------------------------------------------------------------
#
# Copyright (C) 2026 darix
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
# ------------------------------------------------------------------
## Usage example:
##
## /root/bin/test-alts
## ```
## #!/usr/bin/ruby
##
## puts "Hello world"
## ```
##
## with ln -sf /usr/bin/alts /usr/bin/ruby
##
## /etc/apparmor.d/test-alts
## ```
## abi <abi/5.0>,
##
## include <tunables/global>
##
## profile test-alts /root/bin/test-alts {
## include <abstractions/alts>
##
## /usr/bin/ruby.ruby4.0 cx -> actual_script,
##
## profile actual_script {
## include <abstractions/base>
## include <abstractions/ruby>
## /usr/bin/ruby.ruby4.0 mr,
## /root/bin/test-alts r,
## }
## }
## ```
##
abi <abi/5.0>,
include <abstractions/base>
/{,usr/}bin/alts mr,
/usr/share/libalternatives/ r,
/usr/share/libalternatives/*/ r,
/usr/share/libalternatives/*/*.conf r,
# system override
/etc/libalternatives.conf r,
# user override
owner @{HOME}/.config/libalternatives.conf r,
include if exists <abstractions/alts.d>