File apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1.obscpio of Package apparmor-profiles-nordisch

07070100000000000081A400000000000000000000000167543FE60000869E000000000000000000000000000000000000003700000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/LICENSE                    GNU AFFERO GENERAL PUBLIC LICENSE
                       Version 3, 19 November 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.

  A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate.  Many developers of free software are heartened and
encouraged by the resulting cooperation.  However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.

  The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community.  It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server.  Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.

  An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals.  This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU Affero General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Remote Network Interaction; Use with the GNU General Public License.

  Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software.  This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time.  Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    apparmor-profiles-nordisch
    Copyright (C) 2019  darix

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source.  For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code.  There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
07070100000001000081A400000000000000000000000167543FE600000137000000000000000000000000000000000000005900000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor-profiles-nordisch.code-workspace{
        "folders": [
                {
                        "path": "."
                }
        ],
        "settings": {
                "workbench.editor.languageDetection": false,
                "files.associations": {
                         "**/apparmor.d/**/*": "aa"
                }
        }
}
07070100000002000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000003A00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d07070100000003000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000004700000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions07070100000004000081A400000000000000000000000167543FE6000001F2000000000000000000000000000000000000005D00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/all-shells-unconfined  # LOGPROF-SUGGEST: no
  # based on /etc/shells
  /{usr/,}bin/ash    Ux,
  /{usr/,}bin/bash   Ux,
  /{usr/,}bin/csh    Ux,
  /{usr/,}bin/dash   Ux,
  /{usr/,}bin/false  Ux,
  /{usr/,}bin/fish   Ux,
  /{usr/,}bin/ksh    Ux,
  /{usr/,}bin/ksh93  Ux,
  /{usr/,}bin/mksh   Ux,
  /{usr/,}bin/nu     Ux,
  /{usr/,}bin/passwd Ux,
  /{usr/,}bin/pdksh  Ux,
  /{usr/,}bin/rash   Ux,
  /{usr/,}bin/scsh   Ux,
  /{usr/,}bin/sh     Ux,
  /{usr/,}bin/tcsh   Ux,
  /{usr/,}bin/true   Ux,
  /{usr/,}bin/zsh    Ux,07070100000005000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000004F00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/audio.d07070100000006000081A400000000000000000000000167543FE600000026000000000000000000000000000000000000005800000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/audio.d/pipewire/usr/share/pipewire/client-rt.conf r,
07070100000007000081A400000000000000000000000167543FE600000088000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/chromiuminclude <abstractions/chromium-app-files>

owner @{HOME}/.config/chromium/WidevineCdm/*/_platform_specific/linux_*/libwidevinecdm.so rm,07070100000008000081A400000000000000000000000167543FE6000000E2000000000000000000000000000000000000005A00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/chromium-app-files@{APPDIR}/** r,
deny @{APPDIR}/extensions/ w,

@{APPDIR}/lib/libffmpeg.so* rm,
@{APPDIR}/swiftshader/lib*.so* rm,
@{APPDIR}/lib*.so* rm,

/proc/@{pid}/oom_score_adj w,
/proc/@{pid}/ r,
/proc/@{pid}/fd/ r,
/proc/@{pid}/stat r,
07070100000009000081A400000000000000000000000167543FE6000013BA000000000000000000000000000000000000005700000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/chromium-commoninclude <abstractions/base>
#
include <abstractions/p11-kit>
include <abstractions/p11-kit-files>
include <abstractions/openssl>
include <abstractions/ssl_certs>
include <abstractions/nssdb-user-files>
#
include <abstractions/fonts>
include <abstractions/gnome>
include <abstractions/dconf>
#
include <abstractions/keepassxc-proxy-chromium-in-browser>
include <abstractions/xdg-tools-chromium-in-browser>
#
# It is not actually using opencl in most cases but this gives us device access
include <abstractions/X>
include <abstractions/opencl>
include <abstractions/dri-enumerate>
include <abstractions/nvidia>
include <abstractions/audio>
include <abstractions/mesa>
include <abstractions/vulkan>
include <abstractions/cups-client>

# TODO: should probably be in some abstraction
/proc/sys/dev/i915/perf_stream_paranoid r,
# it seems it only has /usr/share/libdrm/amdgpu.ids, but i want to allow future files too.
/usr/share/libdrm/* r,

network inet  stream,
network inet6 stream,

network inet  dgram,
network inet6 dgram,

# seems for nscd
network netlink raw,

capability sys_admin,
capability sys_chroot,
capability sys_ptrace,

userns,

/{usr/,}etc/passwd r,
/{usr/,}etc/hosts r,
/{usr/,}etc/host.conf r,
/{usr/,}etc/nsswitch.conf       r,
/{usr/,}etc/gai.conf       r,
/{usr/,}etc/resolv.conf r,
/run/netconfig/resolv.conf r,
/run/systemd/resolve/* r,

/etc/machine-id r,

/etc/opt/chrome/ r,
deny /etc/opt/chrome/ w,
/etc/chromium/** r,
/etc/chromium/policies/{managed,recommended}/ r,

/run/nscd/* r,
/var/lib/nscd/* r,

# this is later in abstractions but we need it for 15.1
#
/usr/share/drirc.d/ r,

# this could be for pipewire screen sharing
/usr/share/pipewire/** r,

# this should probably be in abstractions/nvidia
/usr/share/egl/egl_external_platform.d/ r,
/usr/share/egl/egl_external_platform.d/* r,

# TODO: make this Px too
# making this a Px rule requires the "no new privs" fix for the kernel part.
# which is scheduled for for kernel 5.8
@{BINARY_PATH} rmix,

ptrace peer=plasma-browser-integration-host,
signal peer=plasma-browser-integration-host,
/usr/bin/plasma-browser-integration-host Px -> plasma-browser-integration-host,

# we deny access to the user file to avoid cache poisoning
deny owner @{HOME}/.{,cache/}fontconfig/** wl,
deny /var/cache/fontconfig/ w,

owner @{HOME}/.cache/nvidia/GLCache/** r,
deny @{HOME}/.cache/nvidia/GLCache/** w,

owner /dev/shm/@{SOCKET_PATH}* rwlk,
owner /tmp/@{SOCKET_PATH}.* rwlk,

owner @{HOME}/.config/@{CONFIG_SUBDIR}/ rw,
owner @{HOME}/.config/@{CONFIG_SUBDIR}/** rwlk,
owner @{HOME}/.cache/@{CONFIG_SUBDIR}/   rw,
owner @{HOME}/.cache/@{CONFIG_SUBDIR}/** rwlk,
owner @{HOME}/.cache/@{CONFIG_SUBDIR}/** rwlk,
owner @{HOME}/.local/share/.@{BROWSER}_reporting_data rwlk,


owner @{HOME}/.config/google-chrome/PepperFlash/*/libpepflashplayer.so rm,
owner @{HOME}/.config/google-chrome/PepperFlash/latest-component-updated-flash r,
owner @{HOME}/.config/google-chrome/WidevineCdm/latest-component-updated-widevine-cdm r,
owner @{HOME}/.config/google-chrome/Dictionaries/*.bdic r,

owner @{HOME}/.config/@{CONFIG_SUBDIR}/WidevineCdm/[0-9].*/_platform_specific/linux_x64/libwidevinecdm.so rm,

owner @{HOME}/.cache/thumbnails/** r,

owner @{HOME}/.config/user-dirs.dirs r,

# TODO: shouldnt this be in abstractions/dconf
owner /run/user/*/dconf/user rw,
owner /run/user/*/dconf/ rw,

# TODO: shouldnt this be in abstractions/nvidia ?
owner @{HOME}/.nv/** rwlk,
owner /tmp/.gl* rm,

owner @{HOME}/ r,
owner @{HOME}/Downloads/ r,
owner @{HOME}/Downloads/** rw,

#TODO: include <abstractions/private-files>

deny /usr/lib/adobe-flashplugin/ rwlk,

owner /proc/@{pid}/setgroups rw,
owner /proc/@{pid}/uid_map w,
owner /proc/@{pid}/gid_map w,
owner /proc/@{pid}/comm r,
owner /proc/@{pid}/clear_refs rw,
/proc/@{pid}/statm r,
owner /proc/@{pid}/task/ r,
/proc/@{pid}/task/*/status r,
owner /proc/@{pid}/mountinfo r,
owner /proc/@{pid}/limits r,

owner /proc/@{pid}/task/*/comm rw,
owner /proc/@{pid}/task/*/status r,
/proc/sys/kernel/yama/ptrace_scope r,

/dev/ r,
# For WebRTC camera access (LP: #1665535)
/dev/video[0-9]* rw,
/dev/bus/usb/ r,
/dev/bus/usb/[0-9]*/[0-9]* rw,


/proc/ r,
/proc/modules r,
/proc/vmstat r,

/proc/sys/fs/inotify/max_user_watches r,
@{sys}/devices/system/cpu/{kernel_max,present} r,
@{sys}/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq r,
@{sys}/devices/virtual/dmi/id/sys_vendor r,
@{sys}/devices/virtual/dmi/id/product_name r,
@{sys}/devices/virtual/tty/tty0/active r,
@{sys}/devices/**/{resource,irq,class,config,uevent,descriptors,manufacturer,product,busnum,devnum,serial,bConfigurationValue,idVendor,idProduct,interface,report_descriptor,boot_vga} r,
@{sys}/bus/ r,
@{sys}/bus/*/devices/ r,
@{sys}/class/ r,
@{sys}/class/*/ r,
@{sys}/bus/pci/devices/ r,
/run/udev/data/* r,
/selinux/ r,
/dev/hidraw* rw,

/dev/shm/ r,
# deny /usr/bin/* x,
# deny /bin/* x,
#

/usr/share/chromium/extensions/ r,
/usr/share/chromium/extensions/** r,

deny /etc/igfx_user_feature.txt w,
deny /etc/igfx_user_feature_next.txt w,
deny /etc/igfx_user_feature_report.txt w,
0707010000000A000081A400000000000000000000000167543FE60000033D000000000000000000000000000000000000005E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/chromium-crash-handler  include <abstractions/base>

  @{APPDIR}/{chrome_,}crashpad_handler rmix,

  capability sys_ptrace,

  owner "@{HOME}/.config/@{CONFIG_SUBDIR}/Crash Reports/settings.dat" rwlk,
  owner "@{HOME}/.config/@{CONFIG_SUBDIR}/{Crashpad,Crash Reports}/{attachments,completed,new,pending}/" rw,
  owner "@{HOME}/.config/@{CONFIG_SUBDIR}/{Crashpad,Crash Reports}/{attachments,completed,new,pending}/*" rw,
  owner "@{HOME}/.config/@{CONFIG_SUBDIR}/CrashpadMetrics-active.pma" rwlk,
  owner "@{HOME}/.config/@{CONFIG_SUBDIR}/CrashpadMetrics.pma" rwlk,

  /proc/sys/fs/nr_open r,
  owner /proc/@{pid}/fd/ r,
  owner /proc/@{pid}/task/ r,
  owner /proc/@{pid}/mem r,
  owner /proc/@{pid}/stat r,
  owner /proc/@{pid}/task/*/comm r,

  /sys/devices/system/cpu/cpufreq/policy*/scaling_{cur,max}_freq r,
  /proc/sys/kernel/yama/ptrace_scope r,0707010000000B000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/crypto.d0707010000000C000081A400000000000000000000000167543FE600000082000000000000000000000000000000000000006000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/crypto.d/crypto-policies/etc/pki/trust/blocklist/ r,
/usr/share/pki/trust/blocklist/ r,
/etc/pki/trust/blocklist/* r,
/usr/share/pki/trust/blocklist/* r,
0707010000000D000081A400000000000000000000000167543FE600000017000000000000000000000000000000000000006200000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/crypto.d/hwf-deny-temp-fix/etc/gcrypt/hwf.deny r,0707010000000E000081A400000000000000000000000167543FE60000008D000000000000000000000000000000000000005100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/discourse  include <abstractions/rails-app>
  include <abstractions/discourse-apps>
  @{RAILS_ROOT}/public/fonts w,

  /usr/share/icu/*/icudt*.dat r,
0707010000000F000081A400000000000000000000000167543FE6000007C0000000000000000000000000000000000000005600000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/discourse-apps/usr/lib/git/git    Px -> /discourse-apps//git,
/{usr/,}bin/bash    Px -> /discourse-apps//bash,
/usr/bin/timeout    Px -> /discourse-apps//timeout, # <- most important rule ever
/usr/bin/magick     Px -> /discourse-apps//magick, # <- most important rule ever
/usr/bin/optipng    Px -> /discourse-apps//optipng,
/usr/bin/oxipng     Px -> /discourse-apps//oxipng,
/usr/bin/pngquant   Px -> /discourse-apps//pngquant,
/usr/bin/jhead      Px -> /discourse-apps//jhead,
/usr/bin/jpegtran   Px -> /discourse-apps//jpegtran,
/usr/bin/jpegoptim  Px -> /discourse-apps//jpegoptim,
/usr/bin/gifsicle   Px -> /discourse-apps//gifsicle,
# /usr/local/lib/node_modules/svgo/bin/svgo Px -> /discourse-apps//svgo,
/usr/libexec/dart-sass/src/dart Px -> /discourse-apps//dart,

/{usr/,}bin/ps    Ux, # Px -> /discourse-apps//ps,
/usr/bin/nice     Ux, # Px -> /discourse-apps//nice,
/usr/bin/mkdir    Ux, # Px -> /discourse-apps//mkdir,
/usr/bin/cp       Ux, # Px -> /discourse-apps//cp,
/usr/bin/rm       Ux, # Px -> /discourse-apps//rm,
/usr/bin/ln       Ux, # Px -> /discourse-apps//ln,
/usr/bin/uname    Ux, # Px -> /discourse-apps//uname,
/usr/bin/hostname Ux, # Px -> /discourse-apps//hostname,
/usr/bin/grep     Ux, # Px -> /discourse-apps//grep,

/usr/bin/du       Ux, # Px -> /discourse-apps//du,
/usr/bin/df       Ux, # Px -> /discourse-apps//df,
/usr/bin/tr       Ux, # Px -> /discourse-apps//tr,
/usr/bin/cut      Ux, # Px -> /discourse-apps//cut,
/usr/bin/tail     Ux, # Px -> /discourse-apps//tail,
/usr/bin/gawk     Ux, # Px -> /discourse-apps//gawk,

/usr/bin/tar      Ux, # Px -> /discourse-apps//tar,
/usr/bin/gzip     Ux, # Px -> /discourse-apps//gzip,
/usr/bin/mv       Ux, # Px -> /discourse-apps//mv,
/usr/bin/ls       Ux, # Px -> /discourse-apps//ls,
/usr/bin/xargs    Ux, # Px -> /discourse-apps//xargs,
/usr/bin/head     Ux, # Px -> /discourse-apps//head,
/usr/lib/postgresql*/bin/pg_dump Ux, # Px -> /discourse-apps//pg_dump,
/usr/bin/find Ux, # Px -> /discourse-apps//find,

07070100000010000081A400000000000000000000000167543FE600000050000000000000000000000000000000000000005B00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/discourse-puma-logs  owner @{RAILS_ROOT}/log/puma.log w,
  owner @{RAILS_ROOT}/log/puma.err.log w,
07070100000011000081A400000000000000000000000167543FE600000D43000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/electroninclude <abstractions/base>
#
include <abstractions/p11-kit>
include <abstractions/p11-kit-files>
include <abstractions/openssl>
include <abstractions/ssl_certs>
include <abstractions/nssdb-user-files>
#
include <abstractions/fonts>
include <abstractions/gnome>
include <abstractions/dconf>
#
#
# It is not actually using opencl in most cases but this gives us device access
include <abstractions/X>
include <abstractions/opencl>
include <abstractions/dri-enumerate>
include <abstractions/nvidia>
include <abstractions/audio>

include <abstractions/consoles>
include <abstractions/mesa>
include <abstractions/vulkan>


# TODO: should probably be in some abstraction
/proc/sys/dev/i915/perf_stream_paranoid r,
# it seems it only has /usr/share/libdrm/amdgpu.ids, but i want to allow future files too.
/usr/share/libdrm/* r,
@{sys}/devices/**/{resource,irq,class,config,uevent,descriptors,manufacturer,product,busnum,devnum,serial,bConfigurationValue,idVendor,idProduct,interface,report_descriptor,boot_vga} r,
owner @{HOME}/.cache/nvidia/GLCache/** r,
deny @{HOME}/.cache/nvidia/GLCache/** w,

network inet  stream,
network inet6 stream,

network inet  dgram,
network inet6 dgram,

# seems for nscd
network netlink raw,

capability sys_admin,
capability sys_chroot,
capability sys_ptrace,

userns,

/{usr/,}etc/passwd r,
/{usr/,}etc/hosts r,
/{usr/,}etc/host.conf r,
/{usr/,}etc/nsswitch.conf       r,
/{usr/,}etc/gai.conf       r,
/{usr/,}etc/resolv.conf r,
/run/netconfig/resolv.conf r,
/run/systemd/resolve/* r,

/run/nscd/* r,
/var/lib/nscd/* r,

/usr/lib{64,}/electron/electron rm,
/usr/lib{64,}/electron/** r,

/usr/lib{64,}/electron/*.so rm,
/usr/lib{64,}/electron/swiftshader/libGLESv2.so rm,
/usr/lib{64,}/electron/swiftshader/libEGL.so rm,

@{APPDIR}/ r,
@{APPDIR}/** r,
@{APPDIR}/resources/app.asar.unpacked/node_modules/zkgroup/libzkgroup-x64.so rm,
@{APPDIR}/resources/**/*.node rm,
@{APPDIR}/node_modules/**/*.node rm,

/usr/share/icu/*/icud*.dat r,

# we deny access to the user file to avoid cache poisoning
deny owner @{HOME}/.{,cache/}fontconfig/** wl,
deny /var/cache/fontconfig/ w,

/etc/machine-id r,

owner /dev/shm/@{SOCKET_PATH}* rwlk,

owner @{HOME}/.config/@{CONFIG_SUBDIR}/ rw,
owner @{HOME}/.config/@{CONFIG_SUBDIR}/** rwlk,

owner @{HOME}/ r,
owner @{HOME}/Downloads/ r,
owner @{HOME}/Downloads/** rw,

owner @{HOME}/.cache/thumbnails/** r,

# TODO: find out how to deny reading all files in e.g. ~ so it wont create some useless warnings when you want to browse to ~/Downloads/
# where you can actually write.

# seems for finding things for the sandbox code.
/proc/ r,

owner /proc/@{pid}/cmdline r,
/proc/@{pid}/stat r,
owner /proc/@{pid}/statm r,
owner /proc/@{pid}/comm r,
owner /proc/@{pid}/fd/ r,
owner /proc/@{pid}/task/ r,
owner /proc/@{pid}/task/*/status r,

owner /proc/@{pid}/oom_score_adj w,

owner /proc/@{pid}/setgroups w,
owner /proc/@{pid}/gid_map w,
owner /proc/@{pid}/uid_map w,

owner /proc/@{pid}/mountinfo r,

/proc/sys/fs/inotify/max_user_watches r,
/proc/sys/kernel/yama/ptrace_scope r,

# why?
/sys/devices/virtual/tty/tty0/active r,

# TODO: shouldnt this be in abstractions/dconf
owner /run/user/*/dconf/user rw,

# it would need to be ix, and nobody wants that, and with px it runs into NNP
deny /usr/bin/xdg-settings x,

deny /etc/igfx_user_feature.txt w,
deny /etc/igfx_user_feature_next.txt w,
deny /etc/igfx_user_feature_report.txt w,
07070100000012000081A400000000000000000000000167543FE60000016E000000000000000000000000000000000000005E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/electron-shell-wrapper  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>

  /{usr/,}bin/bash rm,

  /usr/bin/electron r,

  # can not clear env as we need that NODE_ENV variable

# TODO: doesnt work yet.
#  /usr/lib{64,}/electron/electron rmpx @{chromium_profile_name}

# TODO: handle the map file stuff they do in the /usr/bin/electron wrapper
07070100000013000081A400000000000000000000000167543FE600000141000000000000000000000000000000000000004E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/erlang
   /usr/lib{64,}/erlang/** r,
   /usr/lib{64,}/erlang/** r,
   /usr/lib{64,}/erlang/**/*.so rm,

    /sys/devices/system/cpu/ r,
    /sys/devices/system/node/ r,
    /sys/devices/system/node/node*/ r,
    /sys/devices/system/cpu/cpu*/topology/physical_package_id r,
    /sys/devices/system/cpu/cpu*/topology/core_id r,

07070100000014000081A400000000000000000000000167543FE6000001C3000000000000000000000000000000000000005100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/evolution  /proc/@{pid}/cmdline r,
  /proc/@{pid}/statm r,
  /proc/zoneinfo r,


  /proc/@{pid}/cgroup r,
  /proc/@{pid}/fd/ r,

  /sys/firmware/acpi/pm_profile r,
  /sys/class/dmi/id/chassis_type r,
  /sys/devices/virtual/dmi/id/chassis_type r,

  /usr/share/icu/*/*.dat r,
  /usr/share/publicsuffix/* r,
  /usr/share/evolution/** r,
  /usr/share/evolution-data-server/** r,

  # TODO: shouldnt this be in abstractions/dconf
  owner /run/user/*/dconf/user rw,07070100000015000081A400000000000000000000000167543FE60000001D000000000000000000000000000000000000004E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/gitaly/usr/lib/gitlab/gitaly/** r,
07070100000016000081A400000000000000000000000167543FE600000042000000000000000000000000000000000000004E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/gitlab  owner @{GITLAB_BASEDIR}/** rw,
  owner @{GITLAB_BASEDIR}/** rw,
07070100000017000081A400000000000000000000000167543FE600000048000000000000000000000000000000000000005400000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/gitlab-pagesowner @{GITLAB_PAGES_BASEDIR}/ rw,
owner @{GITLAB_PAGES_BASEDIR}/** rw,
07070100000018000081A400000000000000000000000167543FE6000001EE000000000000000000000000000000000000005400000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/gitlab-rails    include <abstractions/rails-app>

    @{RAILS_ROOT}/ r,
    owner @{RAILS_ROOT}/tmp/prometheus_multiproc_dir/** rwlk,

    owner @{RAILS_ROOT}/log/grpc.log wk,
    owner @{RAILS_ROOT}/log/api_json.log wk,

    /proc/vmstat r,
    /proc/@{pid}/fd/ r,
    /proc/@{pid}/net/unix r,
    /proc/@{pid}/smaps r,
    /proc/@{pid}/limits r,
    /proc/@{pid}/mounts r,

    /usr/share/locale/ r,
    /usr/lib/gitlab/shell/VERSION r,

    owner /tmp/** rwlk,

    /usr/bin/uname px -> /gitlab//uname,
07070100000019000081A400000000000000000000000167543FE600000021000000000000000000000000000000000000005500000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/gitlab-runner# owner @{GITLAB_RUNNER_BASEDIR}
0707010000001A000081A400000000000000000000000167543FE600000128000000000000000000000000000000000000005A00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/gitlab-shell-hooks    include <abstractions/nameservice>

    /usr/lib/gitlab/shell/config.yml r,
    /usr/lib/gitlab/shell/.gitlab_shell_secret r,
    /srv/www/vhosts/gitlab-ce/.gitlab_shell_secret r,

    /usr/lib/gitlab/gitaly/vendor/gitlab-shell/lib/** r,

    owner @{GITLAB_APP_DIR}/log/gitlab-shell.log rw,
0707010000001B000081A400000000000000000000000167543FE600000074000000000000000000000000000000000000005500000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/google-chromeinclude <abstractions/chromium-app-files>

@{APPDIR}/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so rm,
0707010000001C000081A400000000000000000000000167543FE600000125000000000000000000000000000000000000005300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/imagemagick    include <abstractions/fonts>
    /etc/ImageMagick-*/* r,

    /tmp/magick* rwlk,

    /usr/share/fonts-config/conf.avail/* r,
    /usr/share/cantarell-fonts/conf.avail/* r,
    /usr/share/ghostscript/fonts/ r,

    /usr/lib{,64}/ImageMagick-*/**.so rm,

    deny /var/cache/fontconfig/ w,
0707010000001D000081A400000000000000000000000167543FE6000000C2000000000000000000000000000000000000006B00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/keepassxc-proxy-chromium-in-browserowner @{HOME}/.config/google-chrome/NativeMessagingHosts/org.keepassxc.keepassxc_browser.json r,

ptrace peer=chromium-keepassxc-proxy,

/usr/bin/keepassxc-proxy Px -> chromium-keepassxc-proxy,
0707010000001E000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000004E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/mesa.d0707010000001F000081A400000000000000000000000167543FE600000122000000000000000000000000000000000000005800000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/mesa.d/fix-cacheowner @{HOME}/.cache/mesa_shader_cache_db/ rw,
owner @{HOME}/.cache/mesa_shader_cache_db/index rwlk,
owner @{HOME}/.cache/mesa_shader_cache_db/part*/ rw,
owner @{HOME}/.cache/mesa_shader_cache_db/part*/mesa_cache.db rwlk,
owner @{HOME}/.cache/mesa_shader_cache_db/part*/mesa_cache.idx rwlk,07070100000020000081A400000000000000000000000167543FE600000163000000000000000000000000000000000000005100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/nextcloud/var/log/nextcloud/nextcloud.log wlk,

/srv/www/vhosts/nextcloud/public/ r,
/srv/www/vhosts/nextcloud/public/** r,
/srv/www/vhosts/nextcloud/public/config/config.php k,
owner /srv/www/vhosts/nextcloud/data/** rwlk,
owner /srv/www/vhosts/nextcloud/tmp/** rwlk,
owner /srv/www/vhosts/nextcloud/sessions/ r,
owner /srv/www/vhosts/nextcloud/sessions/** rwlk,
07070100000021000081A400000000000000000000000167543FE6000000C1000000000000000000000000000000000000005800000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/nssdb-user-files  owner @{HOME}/.pki/nssdb/pkcs11.txt rwlk,
  owner @{HOME}/.pki/nssdb/pkcs11.txu rwlk,
  owner @{HOME}/.pki/nssdb/key4.db{,-journal} rwlk,
  owner @{HOME}/.pki/nssdb/cert9.db{,-journal} rwlk,
07070100000022000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/nvidia.d07070100000023000081A400000000000000000000000167543FE6000001D2000000000000000000000000000000000000005800000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/nvidia.d/missing/sys/devices/pci*/*/*/{uevent,vendor} r,
/proc/modules r,
/sys/bus/pci/devices/ r,
/proc/driver/nvidia/params r,
/dev/nvidiactl r,

/usr/share/glvnd/egl_vendor.d/ r,
/usr/share/glvnd/egl_vendor.d/** r,

/usr/share/egl/egl_external_platform.d/ r,
/usr/share/egl/egl_external_platform.d/** r,

/usr/share/nvidia/nvidia-application-profiles-*-rc r,

owner @{HOME}/.cache/nvidia/                             r,
owner @{HOME}/.cache/nvidia/**                           r,07070100000024000081A400000000000000000000000167543FE600000328000000000000000000000000000000000000005400000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/openssh-auth  include <abstractions/authentication>
  include <abstractions/wutmp>

  capability kill,
  capability chown,
  capability sys_chroot,
  capability dac_read_search,
  capability dac_override,

  /tmp/ssh-*/ w,
  /tmp/ssh-*/agent.[0-9]* w,

  # TODO: this should go into abstractions/wutmp
  /var/lib/wtmpdb/ r,
  /var/lib/wtmpdb/wtmp.db{,-journal} rwlk,
  #/TODO

  @{HOME}/.ssh/authorized_keys r,

  /etc/environment r,

  /etc/security/limits r,
  /etc/security/limits.d/ r,
  /etc/security/limits.d/* r,

  /run/systemd/userdb/ r,

  /run/nscd/db* r,
  /var/lib/nscd/{passwd,group} r,

  /etc/motd r,
  /{etc,run}/motd.d/ r,
  /{etc,run}/motd.d/** r,

  /proc/sys/kernel/random/boot_id r,

  /etc/machine-id r,

  /proc/@{pid}/uid_map r,
  /proc/@{pid}/loginuid rw,
  /proc/@{pid}/fd/ r,

  /dev/ptmx rw,07070100000025000081A400000000000000000000000167543FE60000029D000000000000000000000000000000000000005600000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/openssh-common  include <abstractions/base>
  include <abstractions/consoles>

  /{usr/,}etc/nsswitch.conf r,
  /{usr/,}etc/gai.conf r,
  /{usr/,}etc/host.conf r,
  /{usr/,}etc/resolv.conf r,

  /etc/hosts r,

  /etc/passwd r,
  /etc/group r,

  /etc/ssh/** r,
  /usr/etc/ssh/** r,

  /etc/selinux/config r,

  /proc/@{pid}/oom_score_adj rw,

  network inet  stream,
  network inet6 stream,

  # for some weird reason it even does a port 22 connect
  network inet  dgram,
  network inet6 dgram,

  # seems for nscd
  network netlink raw,

  capability audit_write,
  capability net_admin,
  capability sys_resource,

  capability setgid,
  capability setuid,

  /{usr/,}sbin/sshd rm,07070100000026000081A400000000000000000000000167543FE6000000F0000000000000000000000000000000000000005500000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/p11-kit-files  /etc/pki/trust/blacklist/ r,
  /usr/share/pki/trust/ r,
  /usr/share/pki/trust/anchors/ r,
  /usr/share/pki/trust/anchors/* r,
  /usr/share/pki/trust/blacklist/ r,
  /usr/share/pki/trust/blacklist/* r,
  /usr/share/pki/trust/*.p11-kit r,
07070100000027000081A400000000000000000000000167543FE600000076000000000000000000000000000000000000005100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/php-fixes    include <abstractions/imagemagick>
    /usr/share/GraphicsMagick-1.3.36/config/*.mgk r,

    /etc/krb5.conf.d/ r,
07070100000028000081A400000000000000000000000167543FE600000114000000000000000000000000000000000000004F00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/php-fpm#
# LICENSED UNDER AGPL 3.0
#
include <abstractions/base>
include <abstractions/nameservice>
include <abstractions/php>
include <abstractions/php-fixes>
include <abstractions/openssl>
include <abstractions/ssl_certs>

signal (receive) peer=php-fpm,

/usr/share/icu/*/*.dat r,
07070100000029000081A400000000000000000000000167543FE60000038C000000000000000000000000000000000000004C00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/php7# vim:syntax=apparmor
# ------------------------------------------------------------------
#
#    Copyright (C) 2002-2006 Novell/SUSE
#    Copyright (C) 2009-2010 Canonical Ltd.
#
#    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.
#
# ------------------------------------------------------------------

  # shared snippets for config files
  /etc/php7/**/ r,
  /etc/php7/**.ini r,

  # Xlibs
  /usr/X11R6/lib{,32,64}/lib*.so* mr,
  # php extensions
  /usr/lib{64,}/php7/*/*.so mr,

  # php7 session mmap socket
  /var/lib/php7/session_mm_* rwlk,
  # file based session handler
  /var/lib/php7/sess_* rwlk,

  # php libraries
  /usr/share/php{,7}/ r,
  /usr/share/php{,7}/** mr,

  # MySQL extension
  /usr/share/mysql/** r,

  # Zend opcache
  /tmp/.ZendSem.* rwlk,
0707010000002A000081A400000000000000000000000167543FE600000082000000000000000000000000000000000000005100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/rails-appinclude <abstractions/ruby-modern>

@{RAILS_ROOT}/** r,

owner @{RAILS_ROOT}/log/production.log w,
owner @{RAILS_ROOT}/tmp/** rw,
0707010000002B000081A400000000000000000000000167543FE6000001F6000000000000000000000000000000000000004D00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/redis  include <abstractions/base>
  include <abstractions/openssl>
  include <abstractions/nameservice>
  include <abstractions/ssl_certs>

  network inet  stream,
  network inet6 stream,

  owner /proc/@{pid}/maps r,
  owner /proc/@{pid}/smaps r,
  owner /proc/@{pid}/stat r,
  owner /proc/@{pid}/oom_score_adj r,

  /proc/sys/net/core/somaxconn r,
  /proc/sys/vm/overcommit_memory r,

  /sys/kernel/mm/transparent_hugepage/enabled r,
  /sys/devices/system/clocksource/clocksource*/current_clocksource r,
0707010000002C000081A400000000000000000000000167543FE600000343000000000000000000000000000000000000005300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/ruby-moderninclude <abstractions/base>
include <abstractions/openssl>
include <abstractions/ssl_certs>
include <abstractions/nameservice>

/usr/lib{,32,64}/ruby/*/ r,
/usr/lib{,32,64}/ruby/*/**.rb r,
/usr/lib{,32,64}/ruby/*/**.so mr,

/usr/{,local/}lib{,32,64}/ruby/{site,vendor}_ruby/*/ r,
/usr/{,local/}lib{,32,64}/ruby/{site,vendor}_ruby/*/**.rb r,
/usr/{,local/}lib{,32,64}/ruby/{site,vendor}_ruby/*/**.so mr,

/usr/lib{,32,64}/ruby/gems/*/ r,
/usr/lib{,32,64}/ruby/gems/*/** r,
/usr/lib{,32,64}/ruby/gems/*/**.so rm,

/usr/bin/bundle{,r}.ruby.ruby[23].[0-9] r,
/usr/bin/bundle{,r}.ruby.ruby[23].[0-9]-* r,
/usr/bin/bundle{,r}.ruby[23].[0-9] r,
/usr/bin/bundle{,r}.ruby[23].[0-9]-* r,


/usr/bin/ruby.ruby[23].? rm,

/proc/*/loginuid r,

/etc/krb5.conf.d/ r,

/sys/kernel/mm/transparent_hugepage/enabled r,
owner /proc/@{pid}/task/*/comm rw,
0707010000002D000081A400000000000000000000000167543FE60000002A000000000000000000000000000000000000004D00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/teamsinclude <abstractions/chromium-app-files>
0707010000002E000081A400000000000000000000000167543FE600000227000000000000000000000000000000000000004F00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/vivaldiinclude <abstractions/chromium-app-files>

@{VARDIR}/** r,

include <abstractions/vivaldi-media-codecs>

@{VARDIR}/WidevineCdm/_platform_specific/*/libwidevinecdm.so rm,
/opt/google/chrome/WidevineCdm/manifest.json r,
/opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so rm,

owner @{HOME}/.config/vivaldi*/WidevineCdm/*/_platform_specific/*/libwidevinecdm.so m,
owner @{HOME}/.local/share/.@{SOCKET_PATH}** rwlk,

/proc/@{pid}/cmdline r,

owner /dev/shm/.@{SOCKET_PATH}* rwlk,

owner @{HOME}/.local/share/.vivaldi_user_id rw,0707010000002F000081A400000000000000000000000167543FE6000000E2000000000000000000000000000000000000006300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/vivaldi-ignore-media-codecs# this is just from the exec I guess
deny @{HOME}/.local/lib/vivaldi{,-snapshot}/media-codecs-*/libffmpeg.so rm,
deny /var/opt/vivaldi{,-snapshot}/media-codecs-*/libffmpeg.so rm,
deny /opt/vivaldi{,-snapshot}/libffmpeg.so* rm,07070100000030000081A400000000000000000000000167543FE6000000AF000000000000000000000000000000000000005C00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/vivaldi-media-codecs@{HOME}/.local/lib/vivaldi{,-snapshot}/media-codecs-*/libffmpeg.so rm,
/var/opt/vivaldi{,-snapshot}/media-codecs-*/libffmpeg.so rm,
/opt/vivaldi{,-snapshot}/libffmpeg.so* rm,
07070100000031000081A400000000000000000000000167543FE60000003B000000000000000000000000000000000000004E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/vscodeinclude <abstractions/chromium-app-files>

/proc/loadavg r,07070100000032000081A400000000000000000000000167543FE60000002A000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/vscodiuminclude <abstractions/chromium-app-files>
07070100000033000081A400000000000000000000000167543FE600000117000000000000000000000000000000000000005700000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/wine-exec-32bit  # we would love to use px here but then we run into "no new privs"
  owner @{wine_base_dir}/bin/wine64           rmix,
  owner @{wine_base_dir}/bin/wine64-preloader rmix,

  owner @{wine_base_dir}/bin/wine             rmpx,
  owner @{wine_base_dir}/bin/wine-preloader   rmpx,

07070100000034000081A400000000000000000000000167543FE600000117000000000000000000000000000000000000005700000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/wine-exec-64bit  owner @{wine_base_dir}/bin/wine64           rmpx,
  owner @{wine_base_dir}/bin/wine64-preloader rmpx,

  # we would love to use px here but then we run into "no new privs"
  owner @{wine_base_dir}/bin/wine             rmix,
  owner @{wine_base_dir}/bin/wine-preloader   rmix,

07070100000035000081A400000000000000000000000167543FE6000000D1000000000000000000000000000000000000005400000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/wine-exec-px  owner @{wine_base_dir}/bin/wine64           rmpx,
  owner @{wine_base_dir}/bin/wine64-preloader rmpx,

  owner @{wine_base_dir}/bin/wine             rmpx,
  owner @{wine_base_dir}/bin/wine-preloader   rmpx,
07070100000036000081A400000000000000000000000167543FE60000045B000000000000000000000000000000000000005500000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/wine-gameenvs  owner @{games_dir}             r,

  # test wine env
  owner @{games_dir}/testenv/    rw,
  owner @{games_dir}/testenv/**  rwmlk,

  # out of tree place with all the big game data
  owner @{games_dir}/games/      r,
  owner @{games_dir}/games/**    rwmlk,

  # blizzard
  owner @{games_dir}/battlenet/      rw,
  owner @{games_dir}/battlenet/**    rwmlk,

  owner @{HOME}/.wine/      rw,
  owner @{HOME}/.wine/**    rwmlk,

  owner @{games_dir}/battlenet-lutris/      rw,
  owner @{games_dir}/battlenet-lutris/**    rwmlk,
  # eveonline
  owner @{games_dir}/eveonline/      r,
  owner @{games_dir}/eveonline/**    rwmlk,

  # user profile
  owner @{games_dir}/users/      r,
  owner @{games_dir}/users/**    rwmlk,

  # directories linked into the user profile
  owner @{HOME}/Documents/Overwatch/      r,
  owner @{HOME}/Documents/Overwatch/**    rwlkm,
  owner "@{HOME}/Documents/Diablo III/"   r,
  owner "@{HOME}/Documents/Diablo III/**" rwlkm,
  owner @{HOME}/Videos/overwatch/ r,
  owner @{HOME}/Videos/overwatch/** rwlkm,
  owner @{HOME}/Pictures/Overwatch/ r,
  owner @{HOME}/Pictures/Overwatch/** rwlkm,
07070100000037000081A400000000000000000000000167543FE600001E6E000000000000000000000000000000000000005300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/wine-lutris  # 3
  include <abstractions/base>
  include <abstractions/openssl>
  include <abstractions/nameservice>
  include <abstractions/audio>
  include <abstractions/fonts>
  include <abstractions/X>
  include <abstractions/vulkan>
  include <abstractions/nvidia>
  include <abstractions/cups-client>

  /etc/vulkan/implicit_layer.d/ r,
  /usr/share/vulkan/explicit_layer.d/ r,

  owner @{HOME}/.cache/gstreamer-1.0/registry*             r,
  deny  @{HOME}/.cache/gstreamer-1.0/registry*             w,
  owner @{HOME}/.cache/mesa_shader_cache/**             rwlk,
  owner @{HOME}/.cache/mesa_shader_cache_db/**             rwlk,
  owner @{HOME}/.cache/wine/ w,
  owner @{HOME}/.cache/wine/** rwlk,

  signal (send,receive) peer=wine-lutris-*,

  /sys/devices/virtual/dmi/id/* r,
  /sys/devices/system/cpu/cpufreq/policy*/{scaling_max_freq,cpuinfo_max_freq} r,
  /sys/devices/system/clocksource/clocksource*/current_clocksource r,
  /sys/devices/pci*/*/*/boot_vga r,
  /sys/devices/pci*/*/*/config r,

  /proc/sys/vm/mmap_min_addr r,
  /dev/nvidia-uvm rw,
  /proc/devices r,
  /dev/hidraw* rw,
  /sys/devices/system/node/ r,
  /sys/class/hidraw/ r,
  /sys/class/drm/ r,
  /dev/input/ r,

  /dev/video0 rw,
  /dev/video1 rw,
  /dev/video2 rw,

  deny /usr/bin/nvidia-modprobe x,

  deny /usr/bin/wine* x,

  # @{wine_base_dir}/bin/*                        px,
  owner @{wine_base_dir}/ r,
  owner @{wine_base_dir}/*/ r,
  owner @{wine_base_dir}/lib{,32,64}/wine/*/             r,
  owner @{wine_base_dir}/lib{,32,64}/wine/               r,
  owner @{wine_base_dir}/lib{,32,64}/gstreamer-1.0/         r,
  owner @{wine_base_dir}/lib{,32,64}/*.so*               rm,
  owner @{wine_base_dir}/lib{,32,64}/gstreamer-1.0/*.so* rm,
  owner @{wine_base_dir}/lib{,32,64}/wine/*/*            rm,
  owner @{wine_base_dir}/share/wine/                  r,
  owner @{wine_base_dir}/share/wine/**                r,
  owner @{wine_base_dir}/lib{,64}/gstreamer-1.0/include/ r,
  owner @{wine_base_dir}/lib{,64}/gstreamer-1.0/include/gst/ r,
  owner @{wine_base_dir}/lib{,64}/gstreamer-1.0/include/gst/gl/ r,
  owner @{wine_base_dir}/mono/wine-mono-*-x86.msi rwlk,

  owner @{HOME}/.config/user-dirs.dirs          r,

  /home/                                        r,
  /opt/                                         r,
  /usr/                                         r,
  /usr/lib64                                    r,
  /usr/share/                                   r,
  /usr/share/wine/                              r,
  /usr/share/wine/mono/                         r,
  deny /usr/share/wine/mono/wine-mono-*/             r,
  deny /usr/share/wine/mono/wine-mono-*/**           rmk,

  owner @{HOME}/.cache/winetricks/ r,
  owner @{HOME}/.cache/winetricks/** rwmlk,
  owner @{HOME}/.cache/wine/ r,
  owner @{HOME}/.cache/wine/wine-mono-*.msi     rwmlk,
  owner @{HOME}/.cache/nvidia/GLCache/** rwlk,
  owner @{HOME}/.cache/nvidia/GLCache/ r,

  owner @{HOME}/.cache/fontconfig/** rwlk,
  owner @{HOME}/.cache/mesa_shader_cache/ r,

  /dev/input/event*                             rw,
  /dev/input/js0                                rw,
  /sys/class/sound/                             r,
  /sys/class/input/                             r,
  /sys/bus/                                     r,
  /sys/class/                                   r,
  /dev/ttyS*                                    r,
  /dev/ttyACM0                                  r,

  deny /dev/sr0                                 r,

  / r,
  /etc/fstab                                    r,
  /proc/uptime                                  r,

  /dev/ r,
  /dev/ttyUSB0 r,

  /proc/@{pid}/comm                             r,
  /proc/@{pid}/fd/                              r,
  /proc/@{pid}/mem                              rw,
  /proc/@{pid}/stat                             r,
  /proc/@{pid}/task/*/stat                      r,
  /proc/@{pid}/task/*/comm                      rw,
  /proc/@{pid}/mounts                           r,
  /proc/@{pid}/pagemap                          r,

  /proc/@{pid}/net/dev                          r,
  /proc/@{pid}/net/tcp                                r,
  /proc/@{pid}/net/tcp6                                r,
  /proc/@{pid}/net/if_inet6                            r,

  # triggered when running eve launcher. never for battle.net
  /proc/@{pid}/net/snmp                         r,
  /proc/sys/net/ipv4/conf/default/forwarding r,
  /proc/sys/net/ipv4/ip_default_ttl r,

  /etc/machine-id                               r,
  /sys/devices/virtual/dmi/id/* r,
  /sys/devices/system/cpu/cpufreq/policy*/{scaling_max_freq,cpuinfo_max_freq} r,
  /sys/devices/system/clocksource/clocksource*/current_clocksource r,
  /sys/devices/system/cpu/cpu*/cache/index*/shared_cpu_map r,
  /sys/devices/system/node/online r,
  /sys/devices/system/node/node*/cpumap r,
  /sys/devices/system/cpu/present r,
  /sys/devices/system/cpu/cpu*/topology/physical_package_id r,
  /sys/devices/system/cpu/cpu*/topology/thread_siblings r,
  /sys/devices/system/cpu/cpu*/topology/thread_siblings_list r,
  /sys/devices/system/cpu/cpu*/cache/index*/{level,ways_of_associativity,coherency_line_size,size,type} r,
  /sys/class/power_supply/ r,
  /sys/devices/**/input/input*/ r,
  /sys/devices/system/cpu/cpu*/cache/index*/id r,

  /sys/bus/media/devices/ r,
  /dev/media0 r,

  /sys/devices/pci*/** r,

  /sys/devices/virtual/net/*/carrier r,

  /run/udev/data/* r,
  /sys/devices/**/{uevent,ev,abs,rel,key} r,
  /etc/mime.types r,

  owner @{HOME}/.local/share/mime/globs      r,
  /usr/share/mime/globs r,
  /var/lib/flatpak/exports/share/mime/globs r,
  deny @{HOME}/.local/share/icons/**        rw,
  deny @{HOME}/Desktop/ r,
  deny @{HOME}/Desktop/** rw,
  deny @{HOME}/.local/share/mime/packages/* rw,
  deny @{HOME}/.local/share/applications/  r,
  deny @{HOME}/.local/share/applications/**  rw,
  deny /usr/bin/update-mime-database    x,
  deny /usr/bin/update-desktop-database x,
  deny /usr/bin/xdg-open x,
  deny /usr/lib{,64}/firefox/firefox.sh x,

  # eve launcher is nosy

  deny /usr/local/ r,
  deny /var/ r,
  deny /etc/ r,
  deny /srv/ r,
  deny /usr/local/ r,
  deny /usr/lib/ r,
  deny /usr/bin/ r,
  deny /usr/share/ssl/ r,

  /var/cache/fontconfig/ r,
  deny /var/cache/fontconfig/ w,

  deny /run/media/** rwlk,

  deny /usr/local/lib/ r,

  # dxvk libraries, config and caches

  owner @{games_dir}/dxvk/                         r,
  owner @{games_dir}/dxvk/*.conf                   r,

  owner @{games_dir}/dxvk/logs/ r,
  owner @{games_dir}/dxvk/{caches,GLCache,logs}/** rwmlk,

  owner @{games_dir}/dxvk/{[0-9].*,latest}/{x32,x64}/*.dll       rmk,
  deny  @{games_dir}/dxvk/{[0-9].*,latest}/{x32,x64}/*.dll w,

  owner @{HOME}/.local/share/lutris/runtime/*/*/{x32,x64}/*.dll rmk,
  deny  @{HOME}/.local/share/lutris/runtime/*/*/{x32,x64}/*.dll w,

  owner @{HOME}/.cache/lutris/winekeys.reg rw,
  owner @{HOME}/.local/share/lutris/runtime/winetricks/ r,

  /proc/sys/dev/i915/perf_stream_paranoid r,

  # another case of "no new privs"
  /usr/bin/ntlm_auth Px -> &wine-lutris-ntlm-auth,

  owner @{wine_base_dir}/bin/wineserver       px,

  deny /etc/igfx_user_feature.txt w,
  deny /etc/igfx_user_feature_next.txt w,
  deny /etc/igfx_user_feature_report.txt w,

  # we would love to use px here but then we run into "no new privs"
  # but not even with the & syntax it works
  #
  # https://gitlab.com/apparmor/apparmor/-/wikis/AppArmorStacking#direct-stack-transition-with-current-profile
  #
  # owner @{wine_base_dir}/bin/wine64           rmpx -> &wine-lutris-wine64,
  # owner @{wine_base_dir}/bin/wine64-preloader rmpx -> &wine-lutris-preloader64,
  # owner @{wine_base_dir}/bin/wine             rmpx -> &wine-lutris-wine32,
  # owner @{wine_base_dir}/bin/wine-preloader   rmpx -> &wine-lutris-preloader32,
07070100000038000081A400000000000000000000000167543FE6000001C4000000000000000000000000000000000000005600000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/wine-preloader  include <abstractions/wine-lutris>
  include <abstractions/wine-gameenvs>

  owner /dev/shm/wine-*-{f,e}sync rw,
  owner /tmp/.wine-*/server-*/anonmap* rwmlk,
  owner /tmp/.wine-*/server-*/tmpmap*  rwmlk,

  /proc/sys/net/core/bpf_jit_enable r,

  audit deny ptrace (read,trace) peer=unconfined,
  audit deny ptrace (read,trace) peer=unconfined,

  ptrace (read,trace) peer=wine-lutris-preloader32,
  ptrace (read,trace) peer=wine-lutris-preloader64,07070100000039000081A400000000000000000000000167543FE600000141000000000000000000000000000000000000006500000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/xdg-tools-chromium-in-browser/usr/bin/xdg-settings    Px -> chromium-xdg-settings,

ptrace peer=chromium-xdg-settings,

# TODO: it runs into "nnp" now. :/
# /usr/bin/xdg-desktop-menu Px -> chromium-xdg-desktop-menu,
deny /usr/bin/xdg-desktop-menu x,
deny /usr/bin/xdg-icon-resource x,
deny /usr/bin/xdg-mime x,

ptrace peer=chromium-xdg-desktop-menu,0707010000003A000081A400000000000000000000000167543FE60000017B000000000000000000000000000000000000004B00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/zedinclude <abstractions/base>

owner /tmp/.tmp*/ rwlk,
owner /tmp/.tmp*/** rwlk,

owner @{HOME}/.config/zed/ rwlk,
owner @{HOME}/.config/zed/** rwlk,
owner @{HOME}/.cache/zed/ rwlk,
owner @{HOME}/.cache/zed/** rwlk,
owner @{HOME}/.local/share/zed/ rwlk,
owner @{HOME}/.local/share/zed/** rwlk,
owner @{HOME}/.local/share/zed/node/ rwlk,
owner @{HOME}/.local/share/zed/node/** rwlk,0707010000003B000081A400000000000000000000000167543FE60000019F000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/abstractions/zed-nodeinclude <abstractions/zed>
include <abstractions/mesa>
include <abstractions/ssl_certs>

signal receive peer=zed/editor,

/etc/passwd r,
/{usr/,}etc/nsswitch.conf r,
/{usr/,}etc/resolv.conf r,
/{usr/,}etc/host.conf r,
/{usr/,}etc/gai.conf r,
/etc/hosts r,

network inet,
network inet6,
network netlink,

/usr/share/icu/*/icu*.dat r,

owner /proc/@{pid}/cgroup r,
/proc/version r,

include if exists <local/zed-node>0707010000003C000081A400000000000000000000000167543FE6000002CC000000000000000000000000000000000000004C00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/chromium-nordischabi <abi/4.0>,

include <tunables/global>

@{BROWSER} = chromium
@{APPNAME} = @{BROWSER}
@{APPDIR} = /usr/lib{,64}/@{APPNAME}
@{BINARY_NAME} = @{BROWSER}
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SOCKET_PATH} = .org.chromium.Chromium
@{CONFIG_SUBDIR} = @{APPNAME}
@{chromium_profile_name} = chromium

# TODO profile for /usr/bin/chromium

profile chromium @{BINARY_PATH} {

  include <abstractions/chromium-common>
  include <abstractions/chromium>

  signal (send) peer=chromium-*,
  ptrace        peer=chromium-*,

  /etc/chromium/** r,

  /proc/@{pid}/cmdline r,
  /proc/@{pid}/mem r,

  /usr/share/icu/*/icu*.dat r,

  include if exists <local/usr.lib.chromium.chromium>
  include if exists <local/chromium>
}
0707010000003D000081A400000000000000000000000167543FE60000029F000000000000000000000000000000000000005900000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/chromium-shell-wrapper-helpersabi <abi/4.0>,

include <tunables/global>

profile chromium-helper-cat {
  include <abstractions/base>
  /usr/bin/cat rm,
}

profile chromium-helper-dirname {
  include <abstractions/base>
  /usr/bin/dirname rm,
}

profile chromium-helper-which {
  include <abstractions/base>
  /usr/bin/which rm,
}

profile chromium-helper-readlink {
  include <abstractions/base>
  /usr/bin/readlink rm,
}

profile chromium-helper-mkdir {
  include <abstractions/base>
  /usr/bin/mkdir rm,
  owner @{HOME}/.local/share/applications/ rw,
}

profile chromium-helper-touch {
  include <abstractions/base>
  /usr/bin/mkdir rm,
  owner @{HOME}/.local/share/applications/mimeapps.list rw,
}
0707010000003E000081A400000000000000000000000167543FE600000550000000000000000000000000000000000000004500000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/claws-mailabi <abi/4.0>,

include <tunables/global>

profile claws-mail /usr/bin/claws-mail {
  include <abstractions/base>
  include <abstractions/nameservice>
  include <abstractions/openssl>
  include <abstractions/ssl_certs>
  include <abstractions/X>
  include <abstractions/fonts>
  include <abstractions/gnome>
  include <abstractions/enchant>
  include <abstractions/dconf>

  /usr/bin/claws-mail rmix,

  /usr/share/claws-mail/** r,
  /usr/lib{64,}/claws-mail/plugins/*.so rm,

  network inet  stream,
  network inet6 stream,

  /proc/@{pid}/fd/ r,

  # TODO: should be in abstractions/X
  owner /run/user/*/ICEauthority rw,


  # new in 3.18 (might be related to oauth support)
  owner /run/user/*/claws-mail/ rw,
  owner /run/user/*/claws-mail/** rwlk,

  owner @{HOME}/               r,
  owner @{HOME}/Downloads/     r,
  owner @{HOME}/Downloads/**   rwlk,
  owner @{HOME}/.claws-mail/** rwlk,
  owner @{HOME}/.claws-mail/   rw,
  owner @{HOME}/.signature*    rwlk,
  owner @{HOME}/.cache/thumbnails/** r,
  include <abstractions/private-files-strict>

  # TODO: shouldnt this be in abstractions/dconf
  owner /run/user/*/dconf/user rw,

  # TODO
  /usr/bin/gpgconf Ux,
  /usr/bin/gpgsm   Ux,
  /usr/bin/gpg2    Ux,
  /usr/bin/gpg     Ux,

  deny /usr/bin/xdg-open x,

  include if exists <local/usr.bin.claws-mail>
  include if exists <local/claws-mail>
}
0707010000003F000081A400000000000000000000000167543FE6000003E6000000000000000000000000000000000000003F00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/dinoabi <abi/4.0>,

include <tunables/global>

profile dino /usr/bin/dino {
  include <abstractions/base>
  include <abstractions/nameservice>
  include <abstractions/openssl>
  include <abstractions/ssl_certs>
  include <abstractions/X>
  include <abstractions/audio>
  include <abstractions/fonts>
  include <abstractions/gnome>
  include <abstractions/dconf>
  include <abstractions/vulkan>
  include <abstractions/enchant>

  # TODO: shouldnt this be in abstractions/dconf
  owner /run/user/*/dconf/user rw,

  /usr/lib{,64}/dino/plugins/*.so rm,

  owner @{HOME}/.local/share/dino/   r,
  owner @{HOME}/.local/share/dino/** rwlk,

  /usr/share/icu/*/icu*.dat r,
  /usr/share/xml/iso-codes/* r,

  /proc/@{pid}/fd/ r,

  /usr/bin/gpgconf Ux,
  /usr/bin/gpgsm   Ux,
  /usr/bin/gpg2    Ux,
  /usr/bin/gpg     Ux,

  owner /proc/@{pid}/comm r,

  /etc/machine-id r,

  /usr/lib{,exec}/gstreamer-1.0/gst-plugin-scanner-* Ux,

  include if exists <local/usr.bin.dino>
  include if exists <local/dino>
}
07070100000040000081A400000000000000000000000167543FE600001903000000000000000000000000000000000000004400000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/discourseabi <abi/4.0>,

include <tunables/global>

@{RAILS_ROOT}=/srv/www/vhosts/discourse
profile /discourse/appserver {
  include <abstractions/discourse>
  include <abstractions/discourse-puma-logs>
  /usr/bin/puma.ruby[23].[0-9]-* r,
  /usr/bin/bundler.ruby[23].[0-9]-* ix,

  /usr/lib{,exec}/git/git Px -> /discourse-apps//git,
  /usr/lib{,exec}/git/git-write-tree Px -> /discourse-apps//git,

  owner @{RAILS_ROOT}/** r,

  owner @{RAILS_ROOT}/public/uploads/** rw,
  owner @{RAILS_ROOT}/public/backups/** rw,
  owner @{RAILS_ROOT}/app/assets/javascripts/plugins/* rw,

  owner /tmp/** rwlk,
}

profile /discourse/sidekiq {
  include <abstractions/discourse>
  /usr/bin/sidekiq.ruby[23].[0-9]-* r,
  /usr/bin/bundler.ruby[23].[0-9]-* ix,

  owner @{RAILS_ROOT}/log/sidekiq.log wk,

  owner @{RAILS_ROOT}/public/uploads/** rw,
  owner @{RAILS_ROOT}/public/backups/** rw,
  owner @{RAILS_ROOT}/app/assets/javascripts/plugins/* rw,

  owner /tmp/** rwlk,

        signal send set=(term) peer=/discourse-apps//*,
  audit signal send set=(term) peer=unconfined,

    /usr/lib{,exec}/git/git Px -> /discourse-apps//git,
    /usr/lib{,exec}/git/git-write-tree Px -> /discourse-apps//git,
}

profile /discourse-apps {
  profile dart flags=(complain) {
    include <abstractions/base>
    /usr/libexec/dart-sass/src/dart rm,
    /usr/libexec/dart-sass/src/sass.snapshot rm,
    /proc/sys/vm/max_map_count r,
    /srv/www/vhosts/discourse/app/assets/stylesheets/** r,
  }

  profile timeout { include <abstractions/base>
    /usr/bin/timeout rm,
    signal send set=(term,kill) peer=/discourse-apps//*,
    /usr/bin/magick      Px -> /discourse-apps//magick, # <- most important rule ever
    /usr/lib{,exec}/git/git Px -> /discourse-apps//git,
    /usr/lib{,exec}/git/git-write-tree Px -> /discourse-apps//git,
    /usr/bin/nice        Px -> /discourse-apps//nice,
  }

  profile nice {
    include <abstractions/base>
    /usr/bin/nice rm,
    /usr/bin/magick     Px -> /discourse-apps//magick, # <- most important rule ever
  }
  profile hostname {
    include <abstractions/base>
    include <abstractions/nameservice>
    include <abstractions/discourse-puma-logs>
    /usr/bin/hostname rm,
  }
  profile magick {
    include <abstractions/base>
    include <abstractions/imagemagick>
    include <abstractions/discourse-puma-logs>

    deny network,

    owner @{RAILS_ROOT}/.cache/ rw,
    owner @{RAILS_ROOT}/.cache/fontconfig/ rw,
    owner @{RAILS_ROOT}/.cache/fontconfig/*.cache-[0-9] rw,

    deny @{RAILS_ROOT}/.fontconfig/ w,

    @{RAILS_ROOT}/vendor/data/RT_sRGB.icm r,

    owner @{RAILS_ROOT}/public/uploads/** rw,
    owner @{RAILS_ROOT}/tmp/** rw,

    owner /tmp/** rw,

    /usr/bin/magick rm,

   /usr/libexec/libheif/ r,
   /usr/libexec/libheif/*.so rm,
   /usr/share/ImageMagick-7/ r,
   /usr/share/ImageMagick-7/*.xml r,
  }
  profile git {
    include <abstractions/base>
    include <abstractions/nameservice>
    include <abstractions/openssl>
    include <abstractions/ssl_certs>
    include <abstractions/discourse-puma-logs>
    /etc/gitconfig r,
    /usr/lib{,exec}/git/* rmix,
    /usr/share/git-core/** r,
    /tmp/discourse_theme*/ rw,
    /tmp/discourse_theme*/** rwlk,
    @{RAILS_ROOT}/vendor/gems/** r,
  }
  profile mkdir {
    include <abstractions/base>
    /usr/bin/mkdir rm,
  }
  profile grep {
    include <abstractions/base>
    include <abstractions/discourse-puma-logs>
    /usr/bin/grep rm,
  }
  profile uname {
    include <abstractions/base>
    include <abstractions/discourse-puma-logs>
    /usr/bin/uname rm,
  }
  profile rm {
    include <abstractions/base>
    /usr/bin/rm rm,
    @{RAILS_ROOT}/public/plugins/* w,
  }
  profile ln {
    include <abstractions/base>
    /usr/bin/ln rm,
    @{RAILS_ROOT}/public/plugins/** w,
  }
  profile ps {
    include <abstractions/base>
    include <abstractions/consoles>
    include <abstractions/nameservice>
    /{usr/,}bin/ps rm,
    /proc/sys/kernel/osrelease r,
    /proc/*/stat r,
    /proc/*/cmdline r,
    /proc/uptime r,
    /proc/sys/kernel/pid_max r,
    /proc/ r,
     ptrace,
  }

  profile bash {
    include <abstractions/base>
    include <abstractions/consoles>
    include <abstractions/nameservice>
    include <abstractions/discourse-puma-logs>
    include <abstractions/discourse-apps>
    /{usr/,}bin/bash rm,
    /tmp/discourse_theme*/ r,
    /srv/www/vhosts/discourse/ r,
    /usr/lib{,exec}/git/git Px -> /discourse-apps//git,
    /usr/lib{,exec}/git/git-write-tree Px -> /discourse-apps//git,
  }

  profile df {
    include <abstractions/base>
    /usr/bin/df rm,
  }
  profile tr {
    include <abstractions/base>
    /usr/bin/tr rm,
  }
  profile cut {
    include <abstractions/base>
    /usr/bin/cut rm,
  }
  profile tail {
    include <abstractions/base>
    /usr/bin/tail rm,
  }
  profile oxipng {
    include <abstractions/base>
    include <abstractions/discourse-puma-logs>

    deny network,

    /usr/bin/oxipng rm,
  }
  profile optipng {
    include <abstractions/base>
    include <abstractions/discourse-puma-logs>

    deny network,

    /usr/bin/optipng rm,
  }
  profile pngquant {
    include <abstractions/base>
    include <abstractions/discourse-puma-logs>

    deny network,

    /usr/bin/pngquant rm,
    /sys/devices/system/cpu/possible r,
  }
  profile jhead {
    include <abstractions/base>
    include <abstractions/discourse-puma-logs>

    deny network,

    /usr/bin/jhead rm,
    owner /proc/@{pid}/cmdline r,
    owner /proc/@{pid}/environ r,
    owner /proc/@{pid}/task/ r,
    owner /proc/@{pid}/task/*/status r,

   ptrace peer=/discourse-apps//jhead,
  }
  profile jpegtran {
    include <abstractions/base>
    include <abstractions/discourse-puma-logs>

    deny network,

    /usr/bin/jpegtran rm,
  }
  profile jpegoptim {
    include <abstractions/base>
    include <abstractions/discourse-puma-logs>

    deny network,

    /usr/bin/jpegoptim rm,
  }
  profile gifsicle {
    include <abstractions/base>
    include <abstractions/discourse-puma-logs>

    deny network,

    /usr/bin/gifsicle rm,
    owner @{RAILS_ROOT}/tmp/** rw,
  }
  profile svgo {
    include <abstractions/base>
    include <abstractions/consoles>
    include <abstractions/discourse-puma-logs>

    deny network,

    /usr/local/lib/node_modules/svgo/bin/svgo rm,
    /usr/local/lib/node_modules/** r,
    /usr/share/icu/*/icu*.dat r,
    /usr/bin/node10 rmix,
  }
}
07070100000041000081A400000000000000000000000167543FE600000377000000000000000000000000000000000000004900000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/dnscrypt-proxyabi <abi/4.0>,

include <tunables/global>

profile dnscrypt-proxy /usr/sbin/dnscrypt-proxy flags=(attach_disconnected) {
  include <abstractions/base>
  include <abstractions/ssl_certs>

  /{usr/,}etc/hosts r,
  /{usr/,}etc/resolv.conf r,
  /{usr/,}etc/gai.conf r,
  /{usr/,}etc/host.conf r,
  /{usr/,}etc/nsswitch.conf r,

  /etc/dnscrypt-proxy/* r,

  /var/lib/dnscrypt-proxy/** rw,

  /var/log/dnscrypt-proxy/ r,
  /var/log/dnscrypt-proxy/** rw,

  /sys/devices/system/cpu/online r,
  /sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,
  /proc/cmdline r,
  /proc/sys/kernel/osrelease r,

  capability net_bind_service,

  network unix  stream,

  network inet  stream,
  network inet6 stream,

  network inet  dgram,
  network inet6 dgram,

  # seems for nscd
  network netlink raw,

  include if exists <local/usr.sbin.dnscrypt-proxy>
  include if exists <local/dnscrypt-proxy>
}
07070100000042000081A400000000000000000000000167543FE60000167B000000000000000000000000000000000000004600000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/ejabberdctlabi <abi/4.0>,

include <tunables/global>

@{ERLANG_BASE_DIR}     = /usr/lib{64,}/erlang
@{EJABBERD_BASE_DIR}   = /usr/lib{64,}/ejabberd
@{EJABBERD_CONFIG_DIR} = /etc/ejabberd
@{EJABBERD_DATA_DIR}   = /var/lib/ejabberd
@{EJABBERD_LOCK_DIR}   = /{var,run}/lock/ejabberdctl
@{EJABBERD_LOG_DIR}    = /var/log/ejabberd

profile ejabberd /usr/sbin/ejabberdctl {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>
  include <abstractions/nameservice>

  /{,usr/}bin/cat      px -> ejabberd//simple_shell_tool,
  /{,usr/}bin/date     px -> ejabberd//simple_shell_tool,
  /{,usr/}bin/expr     px -> ejabberd//simple_shell_tool,
  /{,usr/}bin/flock    px -> ejabberd//flock,
  /{,usr/}bin/pgrep    px -> ejabberd//pgrep,
  /{,usr/}bin/grep     px -> ejabberd//simple_shell_tool,
  /{,usr/}bin/id       px -> ejabberd//simple_shell_tool,
  /{,usr/}bin/sed      px -> ejabberd//ejabberdctl_sed,
  /{,usr/}bin/seq      px -> ejabberd//simple_shell_tool,
  /{,usr/}bin/sleep    px -> ejabberd//simple_shell_tool,
  /{,usr/}bin/uuidgen  px -> ejabberd//simple_shell_tool,

  @{ERLANG_BASE_DIR}/erts-*/bin/epmd px,

  /{,usr}/bin/bash ix,
  /{,usr}/bin/sh ix,

  /usr/sbin/ejabberdctl r,
  @{EJABBERD_CONFIG_DIR}/ejabberdctl.cfg r,
  @{EJABBERD_DATA_DIR}/ r,
  @{EJABBERD_DATA_DIR}/.erlang.cookie r,
  @{EJABBERD_LOCK_DIR}/ r,
  @{EJABBERD_LOCK_DIR}/ejabberdctl* rwkl,

  /usr/bin/erl cx -> erl,
  @{ERLANG_BASE_DIR}/bin/erl cx -> erl,
  /proc/sys/kernel/random/uuid r,

  profile flock {
    include <abstractions/base>
    /{,usr/}bin/flock  rmix,
    @{EJABBERD_LOCK_DIR}/ r,
    @{EJABBERD_LOCK_DIR}/ejabberdctl* rwkl,
  }
  profile pgrep {
    include <abstractions/base>
    /{,usr/}bin/pgrep    rm,
    /proc/ r,
    /proc/*/cmdline r,
    /proc/sys/kernel/osrelease r,
  }

  profile simple_shell_tool {
    include <abstractions/base>
    include <abstractions/nameservice>

    /{,usr/}bin/cat      rm,
    /{,usr/}bin/date     rm,
    /{,usr/}bin/expr     rm,
    /{,usr/}bin/grep     rm,
    /{,usr/}bin/id       rm,
    /{,usr/}bin/sed      rm,
    /{,usr/}bin/seq      rm,
    /{,usr/}bin/sleep    rm,
    /{,usr/}bin/uuidgen  rm,

    /proc/sys/kernel/random/uuid r,
  }

  profile ejabberdctl_sed {
    include <abstractions/base>
    /{,usr/}bin/sed    rm,
    @{EJABBERD_CONFIG_DIR}/ejabberd.yml r,
  }


  profile erl {
    include <abstractions/base>
    include <abstractions/bash>
    include <abstractions/consoles>
    include <abstractions/nameservice>

    /{,usr}/bin/bash rmix,
    /{,usr}/bin/sh   rmix,
    /{,usr/}bin/sed    px -> ejabberd//simple_shell_tool,
    /{,usr/}bin/date   px -> ejabberd//simple_shell_tool,

    /usr/bin/erl r,
    @{ERLANG_BASE_DIR}/bin/erl r,

    @{ERLANG_BASE_DIR}/erts-*/bin/erlexec px -> ejabberd//erlexec,
  }
  profile erlexec {
    include <abstractions/base>
    include <abstractions/bash>
    include <abstractions/consoles>
    include <abstractions/nameservice>
    include <abstractions/erlang>

    /{,usr}/bin/bash ix,
    @{ERLANG_BASE_DIR}/erts-*/bin/erlexec rm,

    @{ERLANG_BASE_DIR}/erts-*/bin/beam.smp     px -> ejabberd//beam_smp,
    @{ERLANG_BASE_DIR}/erts-*/bin/erl_child_setup  px -> ejabberd//erl_child_setup,
    @{ERLANG_BASE_DIR}/erts-*/bin/epmd         px,
  }

  profile inet_gethost {
    include <abstractions/base>
    include <abstractions/bash>
    include <abstractions/consoles>
    include <abstractions/nameservice>
    include <abstractions/erlang>

    @{ERLANG_BASE_DIR}/erts-*/bin/inet_gethost rm,
  }

  profile erl_child_setup {
    include <abstractions/base>
    include <abstractions/bash>
    include <abstractions/consoles>
    include <abstractions/nameservice>
    include <abstractions/erlang>

    /{,usr}/bin/bash ix,
    @{ERLANG_BASE_DIR}/erts-*/bin/erl_child_setup rm,

    /proc/@{pid}/fd/ r,

    @{ERLANG_BASE_DIR}/erts-*/bin/inet_gethost  px -> ejabberd//inet_gethost,
    @{ERLANG_BASE_DIR}/lib/eimp-*/priv/bin/eimp px -> ejabberd//eimp,
    @{ERLANG_BASE_DIR}/lib/os_mon-*/priv/bin/memsup px -> ejabberd//memsup,

    /usr/bin/inotifywait px -> ejabberd//inotify_wait,
    /usr/bin/df px -> ejabberd//df,
  }

  profile inotify_wait {
    include <abstractions/base>
    include <abstractions/bash>

    /usr/bin/inotifywait rm,

   include if exists <local/ejabberd-inotify-wait>
  }

  profile memsup {
    include <abstractions/base>
    include <abstractions/bash>

    @{ERLANG_BASE_DIR}/lib/os_mon-*/priv/bin/memsup rmix,
  }

  profile df {
    include <abstractions/base>
    include <abstractions/bash>

    /usr/bin/df rmix,
    /proc/*/mountinfo r,
  }

  profile eimp {
    include <abstractions/base>
    include <abstractions/bash>
    include <abstractions/consoles>
    include <abstractions/nameservice>
    include <abstractions/erlang>

    @{ERLANG_BASE_DIR}/lib/eimp-*/priv/bin/eimp rm,
  }


  profile beam_smp {
    include <abstractions/base>
    include <abstractions/bash>
    include <abstractions/consoles>
    include <abstractions/nameservice>
    include <abstractions/erlang>
    include <abstractions/openssl>

    network inet  stream,
    network inet6 stream,
    capability net_bind_service,

    /proc/@{pid}/mountinfo r,
    /sys/fs/cgroup/cgroup.controllers r,

    @{ERLANG_BASE_DIR}/erts-*/bin/beam.smp rm,
    @{ERLANG_BASE_DIR}/erts-*/bin/erl_child_setup  px -> ejabberd//erl_child_setup,

    @{EJABBERD_CONFIG_DIR}/* r,

    # seems to be because we pass --libdir=%{_libdir}
    /usr/lib{64,}/                 r,
    @{EJABBERD_BASE_DIR}/**      r,
    @{EJABBERD_BASE_DIR}/**/*.so rm,


    @{EJABBERD_DATA_DIR}/       rw,
    @{EJABBERD_DATA_DIR}/**     rw,

    @{EJABBERD_LOG_DIR}/**      rwlk,

   include if exists <local/ejabberd-beam-smp>
  }
}
07070100000043000081A400000000000000000000000167543FE60000054F000000000000000000000000000000000000005300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/element-desktop-nordischabi <abi/4.0>,

#
# This profile is for the element-desktop/electron package in obs://network:im:signal
#

include <tunables/global>

@{BROWSER} = element
@{APPNAME} = @{BROWSER}
@{APPDIR} = /usr/share/@{APPNAME}
@{BINARY_NAME} = @{BROWSER}
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SOCKET_PATH} = .org.chromium.Chromium
@{CONFIG_SUBDIR} = Element
@{chromium_profile_name} = element-desktop

profile element-desktop-wrapper /usr/bin/element-desktop {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>

  /usr/bin/element-desktop r,
  /{usr/,}bin/bash rm,

  # can not clear env as we need that NODE_ENV variable
  /usr/bin/electron px -> element-desktop-electron,
}

profile element-desktop-electron {
  include <abstractions/electron-shell-wrapper>

  # TODO: if we get this to work we can move it to the abstraction
  #  /usr/lib{64,}/electron/electron px -> @{chromium_profile_name}
  /usr/lib{64,}/electron/electron px -> element-desktop,
}

profile element-desktop {
  include <abstractions/electron>

  /usr/lib{64,}/electron/electron px -> element-desktop,

  audit deny /usr/bin/xdg-open x,

  audit /{usr/,}bin/xdg-settings px -> chromium-xdg-settings,

  /usr/share/webapps/element/** r,
  /etc/element/config.json r,
  /etc/webapps/element/config.json r,

  include if exists <local/element-desktop>
}
07070100000044000081A400000000000000000000000167543FE600000115000000000000000000000000000000000000003F00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/epmdabi <abi/4.0>,

include <tunables/global>

profile epmd /usr/lib64/erlang/erts-*/bin/epmd {
  include <abstractions/base>
  include <abstractions/erlang>

  network inet  stream,
  network inet6 stream,
  capability net_bind_service,

  /usr/lib64/erlang/erts-*/bin/epmd m,
}

07070100000045000081A400000000000000000000000167543FE60000522A000000000000000000000000000000000000004D00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/evolution-nordischabi <abi/4.0>,

include <tunables/global>

@{CONFIGSUBDIRS}=org.gnome.Evolution evolution

include <abstractions/ubuntu-helpers>

profile evolution /usr/bin/evolution {
  include <abstractions/base>
  include <abstractions/nameservice>
  include <abstractions/openssl>
  include <abstractions/ssl_certs>
  include <abstractions/X>
  include <abstractions/fonts>
  include <abstractions/dconf>
  include <abstractions/gnome>
  include <abstractions/enchant>
  include <abstractions/ubuntu-helpers>
  include <abstractions/p11-kit-files>
  include <abstractions/evolution>
  include <abstractions/consoles>
  include <abstractions/vulkan>
  include <abstractions/nvidia>
  include <abstractions/mesa>
  include <abstractions/nssdb-user-files>

  network inet  stream,
  network inet6 stream,

  signal (send) peer=evolution-bubblewrap,
  signal (send) peer=evolution_ntlm_auth,

  /usr/share/xml/iso-codes/* r,
  /etc/gcrypt/random.conf r,

  /sys/devices/pci0000:00/**/{uevent,vendor,device,subsystem_vendor,subsystem_device,config,revision}                        r,
  /sys/devices/pci0000:00/**/drm/ r,

  /sys/fs/cgroup/memory/memory.{memsw.limit_in_bytes,limit_in_bytes,usage_in_bytes} r,
  owner /sys/fs/cgroup/memory/user.slice/user-*.slice/user@*.service/{memory.memsw.limit_in_bytes,memory.usage_in_bytes,memory.limit_in_bytes} r,
  owner /sys/fs/cgroup/user.slice/user-*.slice/user@*.service/app.slice/app-gnome-org.gnome.Evolution-*.scope/memory.{max,high,current} r,


  owner /run/user/*/webkitgtk/* rw,
  owner /run/user/*/webkitgtk/ rw,
  owner /run/user/*/.flatpak/ rw,
  owner /run/user/*/.flatpak/webkit-*/ rw,
  owner /run/user/*/.flatpak/webkit-*/bwrapinfo.json rw,

  # TODO: abstractions/gnome?
  /var/cache/gio-2.0/gnome-mimeapps.list r,

  owner /proc/@{pid}/mountinfo r,
  owner /proc/@{pid}/comm r,

  deny /usr/bin/nvidia-modprobe x,

  owner @{HOME}/               r,
  owner @{HOME}/Downloads/     r,
  owner @{HOME}/Downloads/**   rwlk,
  owner @{HOME}/.signature*    rwlk,

  owner @{HOME}/.cache/@{CONFIGSUBDIRS}/**       rwlk,
  owner @{HOME}/.config/evolution/        rwlk,
  owner @{HOME}/.config/evolution/**      rwlk,
  owner @{HOME}/.local/share/@{CONFIGSUBDIRS}/   r,
  owner @{HOME}/.local/share/@{CONFIGSUBDIRS}/** rwlk,
  owner @{HOME}/.local/share/webkitgtk/** rwlk,
  owner @{HOME}/.cache/thumbnails/**       r,
  owner @{HOME}/.local/share/gvfs-metadata/home r,
  owner @{HOME}/.local/share/gvfs-metadata/home-*.log r,


  include <abstractions/private-files>
  # TODO
  /usr/bin/gpgconf  PUx,
  /usr/bin/gpgsm    PUx,
  /usr/bin/gpg2     PUx,
  /usr/bin/gpg      PUx,
  /usr/bin/sa-learn PUx,

  /usr/lib{,exec}/libwebkit2gtk-*/WebKitWebProcess                                   Px -> evolution-webkit,
  /usr/lib{,exec}/libwebkit2gtk-*/WebKitNetworkProcess                               Px -> evolution-webkit-network,
  /usr/lib{,exec}/evolution-data-server/evolution-data-server/evolution-alarm-notify Px -> evolution-alarm-notify,
  /usr/bin/gio-launch-desktop                                                        Px -> evolution-gio-launch-desktop,
  /usr/libexec/gio-launch-desktop                                                    Px -> evolution-gio-launch-desktop,

  /usr/bin/bwrap                                                                     Px -> evolution-bubblewrap,
  /usr/bin/xdg-dbus-proxy                                                            Px -> evolution-xdg-dbus-proxy,

  # deny /{usr,}/bin/bash x,
  /{usr,}/bin/bash                                                                   Px -> evolution_bash,

  include if exists <local/usr.bin.evolution>
  include if exists <local/evolution>
}

profile evolution_bash {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>

  /{usr,}/bin/bash     rm,
  /usr/bin/ntlm_auth   Px -> evolution_ntlm_auth,
}

profile evolution_ntlm_auth {
  include <abstractions/base>

  /usr/bin/ntlm_auth rm,
  /etc/samba/smb.conf r,

  signal (receive) peer=evolution,
}

profile evolution-bubblewrap flags=(attach_disconnected) {
  include <abstractions/base>
  include <abstractions/gnome>
  include <abstractions/fonts>
  include <abstractions/openssl>
  include <abstractions/nvidia>
  include <abstractions/mesa>

  userns,

  /usr/share/evolution/** r,

  /usr/bin/bwrap rm,

  capability sys_admin,
  capability setpcap,
  capability sys_ptrace,
  capability net_admin,
  capability dac_override,

  # audit mount,

  # mount options in (ro, nosuid, nodev, remount, bind, relatime, noexec)                                                 -> /newroot/**,
  # mount options=(rw)                                                                                                    -> /oldroot/,
  # mount options=(rw, rbind)                                                                   /oldroot/**               -> /newroot/**,

  # mount options=(rw, silent, rslave)                                                                                    -> /,
  # # audit mount options=(rw, rprivate)                                                                                    -> /oldroot/,
  # mount options=(rw, nosuid, nodev)                                     fstype=tmpfs                                    -> /tmp/,
  # mount options=(rw, rbind)                                                                   /tmp/newroot/             -> /tmp/newroot/,
  # mount options=(rw, nosuid, noexec, nodev)                                                   proc                      -> /newroot/proc/,
  # mount options=(rw, nosuid, nodev)                                     fstype=tmpfs          tmpfs                     -> /newroot/{dev,tmp}/,
  # mount options=(rw, nosuid, noexec)                                    fstype=devpts         devpts                    -> /newroot/dev/pts/,
  # mount options=(ro, nosuid, nodev, remount, bind, silent, relatime)                          /oldroot/usr/lib          -> /newroot/lib,
#
  # mount options=(rw, rbind)                                                                   /bindfile*                -> /newroot/.flatpak-info,
  # mount options=(rw, rbind)                                                                   /oldroot/etc/             -> /newroot/etc/,
  # mount options=(rw, rbind)                                                                   /oldroot/dev/null         -> /newroot/dev/null,
  # mount options=(rw, rbind)                                                                   /oldroot/dev/zero         -> /newroot/dev/zero,
  # mount options=(rw, rbind)                                                                   /oldroot/dev/full         -> /newroot/dev/full,
  # mount options=(rw, rbind)                                                                   /oldroot/dev/tty          -> /newroot/dev/tty,
  # mount options=(rw, rbind)                                                                   /oldroot/dev/console      -> /newroot/dev/console,
  # mount options=(rw, rbind)                                                                   /oldroot/dev/pts/*        -> /newroot/dev/console,
#
  # mount options=(rw, rbind)                                                                   /oldroot/dev/{u,}random   -> /newroot/dev/{u,}random,
  # mount options=(ro, nosuid, nodev, remount, bind, silent, relatime)                                                    -> /newroot/etc/,
  # # this is kinda ugly but it does first a rw,bind mount and then another with ro, nosuid, nodev, noexec, remount, bind, silent, relatime
  # mount options in (ro, rw, nosuid, nodev, noexec, remount, bind, silent, relatime)           /oldroot/sys/block/       -> /newroot/sys/block/,
  # mount options=(ro, nosuid, nodev, noexec, remount, bind, silent, relatime)                  /oldroot/sys/bus/         -> /newroot/sys/bus/,
  # mount options=(ro, nosuid, nodev, noexec, remount, bind, silent, relatime)                  /oldroot/sys/class/       -> /newroot/sys/class/,
  # mount options=(ro, nosuid, nodev, noexec, remount, bind, silent, relatime)                  /oldroot/sys/dev/         -> /newroot/sys/dev/,
  # mount options=(ro, nosuid, nodev, noexec, remount, bind, silent, relatime)                  /oldroot/sys/devices/     -> /newroot/sys/devices/,
  # audit mount options=(ro, nosuid, nodev, remount, bind, silent, relatime)                                                    -> /newroot/usr{/local,}/share/,

  mount,
  umount /,
  umount /oldroot/,

  pivot_root oldroot=/tmp/oldroot/ /tmp/,
  pivot_root oldroot=/newroot/ /newroot/,

  signal (receive) peer=evolution,

  network netlink raw,

  /proc/sys/kernel/overflowuid r,
  /proc/sys/kernel/overflowgid r,
  owner /proc/@{pid}/fd/ r,
  owner /proc/@{pid}/comm r,
  owner /proc/@{pid}/{u,g}id_map rw,
  owner /proc/@{pid}/setgroups rw,

  # would love to have Px here but we can not do that because of apparmor="DENIED" operation="exec" info="no new privs" error=-1 profile="evolution-bubblewrap" name="/usr/libexec/libwebkit2gtk-4_0-37/WebKitWebProcess" pid=12270 comm="bwrap" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0 target="evolution-webkit"
  /usr/lib{,exec}/libwebkit2gtk-*/WebKitWebProcess                                   ix,
  /usr/bin/xdg-dbus-proxy                                                            ix,
  owner /run/user/*/webkitgtk/* rwlk,

  /bindfile* rwlk,
  /dev/ r,
  /sys/bus/ r,
  /sys/class/ r,

  owner @{HOME}/.local/share/gvfs-metadata/home r,
  owner @{HOME}/.local/share/gvfs-metadata/home-*.log r,
  owner @{HOME}/.cache/evolution/mail/*/.ev-store-summary rwl,

  owner @{HOME}/.cache/gstreamer-1.0/registry*             r,
  deny  @{HOME}/.cache/gstreamer-1.0/registry*             w,
  owner /newroot/dev/                                      w,
  owner /newroot/dev/video0                                w,
  owner /newroot/dev/console                               w,
  owner /newroot/dev/core                                  w,
  owner /newroot/dev/dri/                                  w,
  owner /newroot/dev/v4l/                                  w,
  owner /newroot/dev/video*                                w,
  owner /newroot/dev/fd                                    w,
  owner /newroot/dev/full                                  w,
  owner /newroot/dev/null                                  w,
  owner /newroot/dev/nvidia0                               w,
  owner /newroot/dev/nvidiactl                             w,
  owner /newroot/dev/ptmx                                  w,
  owner /newroot/dev/pts/                                  w,
  owner /newroot/dev/random                                w,
  owner /newroot/dev/shm/                                  w,
  owner /newroot/dev/snd/                                  w,
  owner /newroot/dev/stderr                                w,
  owner /newroot/dev/stdin                                 w,
  owner /newroot/dev/stdout                                w,
  owner /newroot/dev/tty                                   w,
  owner /newroot/dev/urandom                               w,
  owner /newroot/dev/zero                                  w,
  owner /newroot/etc/                                      w,
  /newroot/.flatpak-info                                   w,
  /.flatpak-info                                           r,
  owner /newroot/@{HOME}/                                  w,
  owner /newroot/@{HOME}/.cache/                           w,
  owner /newroot/@{HOME}/.cache/fontconfig/                w,
  owner /newroot/@{HOME}/.cache/gstreamer-1.0/             w,
  owner /newroot/@{HOME}/.config/fontconfig/               w,
  owner /newroot/@{HOME}/.config/gtk-3.0/                  w,
  owner /newroot/@{HOME}/.config/pulse/                    w,
  owner /newroot/@{HOME}/.config/                          w,
  owner /newroot/@{HOME}/.fonts/                           w,
  owner /newroot/@{HOME}/.local/share/gstreamer-1.0/       w,
  owner /newroot/@{HOME}/.local/share/                     w,
  owner /newroot/@{HOME}/.local/share/webkitgtk/databases/ w,
  owner /newroot/@{HOME}/.local/share/webkitgtk/           w,
  owner /newroot/@{HOME}/.local/                           w,
  owner /newroot/@{HOME}/.themes/                          w,
  owner /newroot/lib{64,}/                                 w,
  owner /newroot/proc/                                     w,
  owner /newroot/run/                                      w,
  owner /newroot/run/user/*/bus                            w,
  owner /newroot/run/user/*/gdm/                           w,
  owner /newroot/run/user/*/gdm/Xauthority                 w,
  owner /newroot/run/user/*/pulse/                         w,
  owner /newroot/run/user/                                 w,
  owner /newroot/run/user/*/                               w,
  owner /newroot/run/user/*/webkitgtk/                     w,
  owner /newroot/run/user/*/webkitgtk/dbus-proxy-*         w,
  owner /newroot/{srv/,}home/                              w,
  owner /newroot/srv/                                      w,
  owner /newroot/sys/block/                                w,
  owner /newroot/sys/bus/                                  w,
  owner /newroot/sys/class/                                w,
  owner /newroot/sys/devices/                              w,
  owner /newroot/sys/dev/                                  w,
  owner /newroot/sys/                                      w,
  owner /newroot/tmp/                                      w,
  owner /newroot/tmp/.X11-unix/                            w,
  owner /newroot/tmp/.X11-unix/X1                          w,
  owner /newroot/usr/                                      w,
  owner /newroot/usr/bin/                                  w,
  /newroot/usr/bin/                                        r,
  owner /newroot/usr/lib{64,}/                             w,
  owner /newroot/usr/libexec/pk-gstreamer-install          w,
  owner /newroot/usr/libexec/gst-install-plugins-helper    w,
  owner /newroot/usr/lib{exec,}/libwebkit2gtk-*/           w,
  owner /newroot/usr/lib{exec,}/                           w,
  owner /newroot/usr/local/lib{64,}/                       w,
  owner /newroot/usr/local/share/                          w,
  owner /newroot/usr/local/                                w,
  owner /newroot/usr/share/                                w,
  owner /newroot/var/                                      w,
  owner /newroot/var/cache/fontconfig/                     w,
  owner /newroot/var/cache/                                w,
  owner /newroot/var/run                                   w,
  owner /newroot/var/tmp                                   w,
  owner /proc/@{pid}/cmdline                               r,
  owner /proc/@{pid}/mountinfo                             r,
  owner /proc/@{pid}/smaps                                 r,
  owner /proc/@{pid}/statm                                 r,
  owner /                                                  r,
  owner /newroot/run/user/*/wayland-0                      w,
  owner /newroot/tmp/.X11-unix/X0                          w,

  owner /newroot/usr/bin/xdg-dbus-proxy rw,
  /newroot/dev/media0 rw,
  owner /newroot/run/user/*/webkitgtk/a11y-proxy*          w,
  owner /newroot/run/user/*/webkitgtk/bus                  w,
  owner /newroot/run/user/*/webkitgtk/at-spi-bus           w,
  owner /newroot/usr/libexec/gstreamer-1.0/                w,
  owner /newroot/usr/libexec/gstreamer-1.0/gst-ptp-helper  w,
  owner /newroot/usr/libexec/gstreamer-1.0/gst-plugin-scanner-x86_64 w,
  owner /newroot/@{HOME}/.local/share/@{CONFIGSUBDIRS}/           w,
  owner /newroot/@{HOME}/.local/share/@{CONFIGSUBDIRS}/mediakeys/ w,
  owner /newroot/@{HOME}/.local/share/@{CONFIGSUBDIRS}/mediakeys/v1/ w,

  owner /newroot/run/systemd/ w,
  owner /newroot/run/systemd/journal/ w,
  owner /newroot/run/systemd/journal/socket w,
  owner /newroot/run/systemd/journal/stdout w,

  owner /run/user/*/.flatpak/webkit-*/bwrapinfo.json rw,

  /sys/devices/virtual/dmi/id/chassis_type                 r,
  /sys/devices/pci0000:00/**/{uevent,vendor,device,subsystem_vendor,subsystem_device,config,revision}        r,

  /usr/share/icu/*/icu*.dat                                r,
  /usr/share/publicsuffix/*                                r,
  /usr/share/hyphen/                                       r,
  /usr/share/hyphen/*                                      r,

  /etc/nsswitch.conf                                       r,
  /etc/passwd                                              r,

  owner @{HOME}/.local/share/@{CONFIGSUBDIRS}/                   rw,

  # inherited from main process
  /proc/zoneinfo r,
  owner /proc/@{pid}/cgroup r,

  /sys/fs/cgroup/memory/{memory.memsw.limit_in_bytes,memory.usage_in_bytes,memory.limit_in_bytes} r,
  owner /sys/fs/cgroup/memory/user.slice/user-*.slice/user@*.service/{memory.memsw.limit_in_bytes,memory.usage_in_bytes,memory.limit_in_bytes} r,
  owner /sys/fs/cgroup/user.slice/user-*.slice/user@*.service/app.slice/app-gnome-org.gnome.Evolution-*.scope/memory.{current,max,high} r,
}

profile evolution-xdg-dbus-proxy {
  include <abstractions/base>
  /usr/bin/xdg-dbus-proxy rm,
  owner /run/user/*/webkitgtk/* rwlk,
}

profile evolution-webkit {
  include <abstractions/base>
  include <abstractions/X>
  include <abstractions/gnome>
  include <abstractions/dconf>
  include <abstractions/fonts>
  include <abstractions/nvidia>
  include <abstractions/evolution>
  include <abstractions/openssl>
  include <abstractions/mesa>

  /usr/lib{,exec}/libwebkit2gtk-*/WebKitWebProcess rm,

  /proc/@{pid}/smaps r,

  deny /dev/ r,

  owner /proc/@{pid}/comm rw,
  owner /proc/@{pid}/task/*/comm rw,

  owner @{HOME}/.local/share/gvfs-metadata/home r,
  owner @{HOME}/.cache/gstreamer-1.0/registry* rw,
  /usr/lib{,exec}/gstreamer-1.0/gst-plugin-scanner-* Px -> evolution-gst-plugin-scanner,

  /sys/devices/pci0000:00/**/{uevent,vendor}                        r,

  owner /sys/fs/cgroup/memory/user.slice/user-*.slice/user@*.service/{memory.memsw.limit_in_bytes,memory.usage_in_bytes,memory.limit_in_bytes} r,
  owner /sys/fs/cgroup/user.slice/user-*.slice/user@*.service/app.slice/app-gnome-org.gnome.Evolution-*.scope/memory.{max,high,current} r,
}

profile evolution-webkit-network {
  include <abstractions/base>
  include <abstractions/openssl>
  include <abstractions/ssl_certs>
  include <abstractions/dconf>
  include <abstractions/mesa>

  /usr/lib{,exec}/libwebkit2gtk-*/WebKitNetworkProcess rm,

  /etc/hosts r,
  /etc/host.conf r,
  /etc/resolv.conf r,
  /{usr/,}etc/nsswitch.conf       r,
  /{usr/,}etc/gai.conf       r,
  /run/nscd/db* r,

  # seems for nscd
  network netlink raw,

  network inet  dgram,
  network inet6 dgram,

  network inet  stream,
  network inet6 stream,

  owner @{HOME}/.local/share/@{CONFIGSUBDIRS}/** rwlk,
  owner @{HOME}/.local/share/webkitgtk/** rwlk,
  owner @{HOME}/.cache/@{CONFIGSUBDIRS}/ rw,
  owner @{HOME}/.cache/@{CONFIGSUBDIRS}/** rwlk,
  owner @{HOME}/.local/share/gvfs-metadata/home r,
  owner @{HOME}/.local/share/gvfs-metadata/home-*.log r,

  /proc/zoneinfo r,
  owner /proc/@{pid}/cgroup r,
  owner /proc/@{pid}/statm r,
  owner /proc/@{pid}/smaps r,

  /sys/fs/cgroup/memory/memory.{memsw.limit_in_bytes,limit_in_bytes,usage_in_bytes} r,
  owner /sys/fs/cgroup/memory/user.slice/user-*.slice/user@*.service/{memory.memsw.limit_in_bytes,memory.usage_in_bytes,memory.limit_in_bytes} r,
  owner /sys/fs/cgroup/user.slice/user-*.slice/user@*.service/app.slice/app-gnome-org.gnome.Evolution-*.scope/memory.{current,max,high} r,

  # TODO: shouldnt this be in abstractions/dconf
  owner /run/user/*/dconf/user rw,

  /usr/share/publicsuffix/*                                r,
  /usr/share/glib-2.0/schemas/gschemas.compiled            r,
}

profile evolution-gst-plugin-scanner {
  include <abstractions/base>
  /usr/lib{,exec}/gstreamer-1.0/gst-plugin-scanner-* rm,
  deny /dev/ r,
}

profile evolution-alarm-notify {
  include <abstractions/base>
  include <abstractions/X>
  include <abstractions/gnome>
  include <abstractions/dconf>
  include <abstractions/fonts>
  include <abstractions/openssl>

  /proc/@{pid}/statm r,

  /etc/passwd r,
  /{usr/,}etc/nsswitch.conf r,

  # TODO: shouldnt this be in abstractions/dconf
  owner /run/user/*/dconf/user rw,

  deny /dev/ r,

  /var/lib/nscd/passwd r,
  /usr/share/icu/*/icu*.dat r,
  /var/cache/gio-2.0/gnome-mimeapps.list r,
  owner @{HOME}/.local/share/@{CONFIGSUBDIRS}/datetime-formats.ini r,

  /usr/lib{,exec}/evolution-data-server/evolution-data-server/evolution-alarm-notify rm,
}

profile evolution-gio-launch-desktop {
  include <abstractions/base>
  include <abstractions/ubuntu-helpers>
  include <abstractions/ubuntu-browsers>

  /usr/bin/gio-launch-desktop rm,
  /usr/libexec/gio-launch-desktop rm,

  /opt/vivaldi/vivaldi Px,
  /opt/vivaldi-snapshot/vivaldi Px,
  /opt/vivaldi-snapshot/vivaldi-snapshot Px,

  include if exists <local/evolution-allowed-apps>
}
07070100000046000081A400000000000000000000000167543FE6000004DB000000000000000000000000000000000000004700000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/forked-daapdabi <abi/4.0>,

include <tunables/global>
#
# I run forked-daapd this override file:
#
# cat /etc/systemd/system/forked-daapd.service.d/override.conf
# [Service]
# MemoryMax=
# MemorySwapMax=
# User=daapd
# Group=daapd
#
# without this override file at least the owner flag for the log file probably has to be removed
# and it will require the dac_override capability
#
profile forked-daapd /usr/sbin/forked-daapd {
  include <abstractions/base>
  include <abstractions/openssl>
  include <abstractions/nameservice>
  include <abstractions/audio>

  capability setuid,
  capability setgid,
  capability chown,
  capability fowner,

  network inet,
  network inet6,

  /proc/@{pid}/fd/         r,
  /proc/@{pid}/task/*/comm rw,
  /dev/shm/ r,

  /etc/machine-id r,

  /usr/sbin/forked-daapd rm,

  /etc/forked-daapd.conf r,
  /usr/lib{,64}/forked-daapd/*.so rm,
  /usr/share/forked-daapd/**      r,

  # would like to use owner here but it is tricky with starting as root and then switching to daapd user
  owner /var/cache/forked-daapd/   r,
  owner /var/cache/forked-daapd/** rwlk,
  owner /var/lib/forked-daapd/**   rwlk,
  owner /var/log/forked-daapd.log  w,

  /srv/music/ r,
  /srv/music/** r,

  include if exists <local/forked-daapd>
}
07070100000047000081A400000000000000000000000167543FE600002CDB000000000000000000000000000000000000004100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/gitlab# /usr/sbin/gitlab-pages -pages-root /srv/gitlab-pages -listen-http :8090 -admin-secret-path /srv/www/vhosts/gitlab-ce/.gitlab_pages_secret -admin-unix-listener /srv/www/vhosts/gitlab-ce/tmp/sockets/private/pages-admin.socket
# /usr/sbin/gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr /srv/www/vhosts/gitlab-ce/tmp/sockets/gitlab-workhorse.socket -authSocket /srv/www/vhosts/gitlab-ce/tmp/sockets/gitlab.socket
# /usr/lib/gitlab/gitaly/bin/gitaly /etc/gitaly/config.toml
#  \_ /usr/bin/ruby.ruby2.6 /usr/lib/gitlab/gitaly/bin/gitaly-ruby 11140 /srv/www/vhosts/gitlab-ce/tmp/sockets/private/gitaly/socket.0
#  \_ /usr/bin/ruby.ruby2.6 /usr/lib/gitlab/gitaly/bin/gitaly-ruby 11140 /srv/www/vhosts/gitlab-ce/tmp/sockets/private/gitaly/socket.1
# unicorn_rails.ruby2.6 master --env production --config-file /srv/www/vhosts/gitlab-ce/config/unicorn.rb
#  \_ unicorn_rails.ruby2.6 worker[0] --env production --config-file /srv/www/vhosts/gitlab-ce/config/unicorn.rb
#  \_ unicorn_rails.ruby2.6 worker[1] --env production --config-file /srv/www/vhosts/gitlab-ce/config/unicorn.rb
#  \_ unicorn_rails.ruby2.6 worker[2] --env production --config-file /srv/www/vhosts/gitlab-ce/config/unicorn.rb
# sidekiq 5.2.5 gitlab-ce [0 of 3 busy]

abi <abi/4.0>,

include <tunables/global>
include <tunables/gitlab>

@{RAILS_ROOT}=@{GITLAB_APP_DIR}

profile /gitlab flags=(complain) {
  profile appserver flags=(complain) {
    include <abstractions/gitlab-rails>
    include <abstractions/gitlab>
    /usr/bin/puma.ruby2.[0-9]-* r,
    /usr/bin/unicorn_rails.ruby2.[0-9]-* r,

    /bin/bash         rmpx -> /gitlab//bash,
    /usr/bin/tail     rmpx -> /gitlab//tail,
    /usr/bin/gpgconf  rmpx -> /gitlab//gpgconf,
    /usr/bin/gpgsm    rmpx -> /gitlab//gpgsm,
    /usr/bin/gpg2     rmpx -> /gitlab//gpg,

    owner @{GITLAB_APP_DIR}/public/uploads/** rwlk,

    owner @{RAILS_ROOT}/log/{unicorn,puma}.stderr.log wk,
    owner @{RAILS_ROOT}/log/{unicorn,puma}.stdout.log wk,
    owner @{RAILS_ROOT}/log/production_json.log wk,
    owner @{RAILS_ROOT}/log/importer.log wk,
    owner @{RAILS_ROOT}/log/application.log wk,
    owner @{RAILS_ROOT}/log/audit_json.log wk,
  }
  profile sidekiq flags=(complain) {
    include <abstractions/gitlab-rails>
    include <abstractions/gitlab-pages>
    include <abstractions/gitlab>
    /usr/bin/sidekiq.ruby2.[0-9]-* r,

    owner @{RAILS_ROOT}/log/application.log wk,
    owner @{RAILS_ROOT}/log/sidekiq.log wk,

    /usr/bin/gpgconf  rmpx -> /gitlab//gpgconf,
    /usr/bin/gpgsm    rmpx -> /gitlab//gpgsm,
    /usr/bin/gpg2     rmpx -> /gitlab//gpg,
    /bin/bash         rmpx -> /gitlab//bash,
    /usr/bin/find     rmpx -> /gitlab//find,
  }
  profile uname flags=(attach_disconnected, complain) {
    include <abstractions/base>
    /usr/bin/uname rm,
    owner @{RAILS_ROOT}/log/{unicorn,puma}.stderr.log a,
    owner @{RAILS_ROOT}/log/{unicorn,puma}.stdout.log a,

    deny /apparmor/.null rw,
  }
  profile git flags=(complain) {
     include <abstractions/base>

     owner @{GITLAB_BASEDIR}/** rwlk,
     /usr/share/git-core/** r,
     /srv/www/vhosts/gitlab-ce/.mailmap r,

     /bin/bash         rmpx -> /gitlab//bash,
     /usr/lib/git/git         m,
     /usr/lib/git/git         px -> /gitlab//git,
     /usr/bin/git-upload-pack px -> /gitlab//git-upload-pack,

     /usr/lib/gitlab/gitaly/git-hooks/gitlab-shell-hook px,

     signal (receive) peer=/usr/lib/gitlab/gitaly/bin/gitaly,
  }

  profile git-upload-pack flags=(complain) {
     include <abstractions/base>
     /usr/bin/git-upload-pack rm,
     owner @{GITLAB_BASEDIR}/** rw,
     /usr/lib/git/git         px -> /gitlab//git,
  }
  profile bash flags=(complain) {
    include <abstractions/base>
    include <abstractions/bash>
    include <abstractions/consoles>

    /bin/bash rm,
    /usr/bin/uname px -> /gitlab//uname,

    /usr/bin/ruby rmpx -> /gitlab//ruby_huh,

    deny @{RAILS_ROOT}/tmp/prometheus_multiproc_dir/** rwlk,
    owner @{RAILS_ROOT}/log/{unicorn,puma}.stderr.log a,
    owner @{RAILS_ROOT}/log/{unicorn,puma}.stdout.log a,
  }
  profile ruby_huh flags=(attach_disconnected, complain) {
    include <abstractions/ruby-modern>
    /usr/bin/ruby rm,
    deny /apparmor/.null rw,
  }

  profile find flags=(complain) {
    include <abstractions/base>

    @{RAILS_ROOT}/ r,
    @{RAILS_ROOT}/** r,

    @{GITLAB_BASEDIR}/ rwlk,
    @{GITLAB_BASEDIR}/** rwlk,

    /usr/bin/find rm,
    deny @{RAILS_ROOT}/tmp/prometheus_multiproc_dir/** rwlk,
  }
  profile tail flags=(complain) {
    include <abstractions/base>
    /usr/bin/tail rm,
    owner /srv/www/vhosts/gitlab-ce/log/*.log r,
    deny @{RAILS_ROOT}/tmp/prometheus_multiproc_dir/** rwlk,
  }
  profile gpgconf flags=(complain) {
    include <abstractions/base>
    /usr/bin/gpgconf rm,
  }
  profile gpgsm flags=(complain) {
    include <abstractions/base>
    /usr/bin/gpgsm rm,
    owner /tmp/** rwlk,

    /proc/@{pid}/fd/ r,
  }
  profile gpg flags=(complain) {
    include <abstractions/base>
    /usr/bin/gpg2 rm,
    /usr/bin/gpg-agent rmpx -> /gitlab//gpgagent,
    owner /tmp/** rwlk,

    /proc/@{pid}/fd/ r,
  }
  profile gpgagent flags=(complain) {
    include <abstractions/base>
    /usr/bin/gpg-agent rm,

    owner /tmp/** rwlk,

    /proc/@{pid}/fd/ r,
  }
}

/usr/sbin/gitlab-pages flags=(complain) {
  include <abstractions/base>
  include <abstractions/gitlab-pages>

  @{GITLAB_APP_DIR}/.gitlab_pages_secret r,

  owner @{GITLAB_PRIVATE_SOCKET_DIR}/pages-admin.socket rwlk,

  network inet stream,
  network inet6 stream,

  /etc/mime.types r,

  # TODO: move this to abstractions/golang-network?
  /proc/sys/net/core/somaxconn   r,
}

/usr/sbin/gitlab-workhorse flags=(complain) {
  include <abstractions/base>
  include <abstractions/gitlab>

  /etc/mime.types r,

  @{GITLAB_APP_DIR}/public/ r,
  @{GITLAB_APP_DIR}/public/** r,
  @{GITLAB_APP_DIR}/doc/** r,

  @{GITLAB_APP_DIR}/.gitlab_workhorse_secret r,

  owner @{GITLAB_SOCKET_DIR}/gitlab-workhorse.socket rwlk,

  /sys/devices/system/cpu/online r,
  /proc/sys/net/core/somaxconn   r,

  /usr/sbin/gitlab-zip-cat      cx -> gitlab_zip_cat,
  /usr/sbin/gitlab-zip-metadata cx -> gitlab_zip_metadata,

  owner /tmp/gitlab-workhorse** rwlk,
  owner @{GITLAB_APP_DIR}/public/uploads/** rwlk,

  profile gitlab_zip_metadata flags=(complain) {
    include <abstractions/base>
    /usr/sbin/gitlab-zip-metadata rm,
    /proc/sys/net/core/somaxconn r,
    owner /srv/gitlab/artifacts/tmp/uploads/** r,
  }

  profile gitlab_zip_cat flags=(complain) {
    include <abstractions/base>
    /usr/sbin/gitlab-zip-cat rm,
    /proc/sys/net/core/somaxconn r,
  }
}

/usr/lib/gitlab/gitaly/bin/gitaly flags=(complain) {
  include <abstractions/base>
  include <abstractions/gitaly>
  include <abstractions/gitlab>

  /etc/gitaly/config.toml r,

  owner /tmp/gitaly-linguist-* rwlk,

  /proc/sys/net/core/somaxconn r,

  owner @{GITLAB_PRIVATE_SOCKET_DIR}/gitaly.socket rwlk,
  owner @{GITLAB_PRIVATE_SOCKET_DIR}/gitaly/  rwlk,
  owner @{GITLAB_PRIVATE_SOCKET_DIR}/gitaly/* rwlk,

  /usr/bin/bundle.* px -> /usr/lib/gitlab/gitaly/bin/gitaly//bundle,

  /usr/lib/gitlab/gitaly/bin/ruby-cd     px -> /usr/lib/gitlab/gitaly/bin/gitaly//ruby-cd,
  /usr/lib/gitlab/gitaly/bin/gitaly                         px -> /usr/lib/gitlab/gitaly/bin/gitaly//gitaly,
  /usr/lib/gitlab/gitaly/bin/gitaly      px -> /usr/lib/gitlab/gitaly/bin/gitaly//gitaly,
  /usr/lib/gitlab/gitaly/bin/gitaly-ssh                     px -> /usr/lib/gitlab/gitaly/bin/gitaly//gitaly-ssh,
  /usr/lib/gitlab/gitaly/bin/gitaly-ssh  px -> /usr/lib/gitlab/gitaly/bin/gitaly//gitaly-ssh,

  /usr/lib/git/git                         px -> /gitlab//git,
  /bin/ps                                  px -> /usr/lib/gitlab/gitaly/bin/gitaly//ps,
  /usr/bin/du                              px -> /usr/lib/gitlab/gitaly/bin/gitaly//du,

  signal (send) peer=/usr/lib/gitlab/gitaly/bin/gitaly//*,
  signal (send) peer=/gitlab//git,

  profile bundle flags=(complain) {
     include <abstractions/base>
     include <abstractions/ruby-modern>

     /usr/bin/ruby.ruby2.? px -> /usr/lib/gitlab/gitaly/bin/gitaly//ruby,

     /usr/bin/git-linguist.* px -> /usr/lib/gitlab/gitaly/bin/gitaly//git-linguist,

     /usr/lib/gitlab/gitaly/** r,
     /usr/lib/gitlab/gitaly/bin/gitaly-ruby px -> /usr/lib/gitlab/gitaly/bin/gitaly//gitaly-ruby,

     signal (receive) peer=/usr/lib/gitlab/gitaly/bin/gitaly,
  }

  profile git-linguist flags=(complain) {
    include <abstractions/gitaly>
    include <abstractions/ruby-modern>

     owner @{GITLAB_BASEDIR}/** rw,
    /usr/bin/git-linguist.* r,
    /usr/lib/git/git                         px -> /gitlab//git,

    signal (receive) peer=/usr/lib/gitlab/gitaly/bin/gitaly,
  }
  profile ruby flags=(complain) {
    include <abstractions/gitaly>
    include <abstractions/ruby-modern>

    owner /tmp/gitaly-linguist-* rwlk,
  }
  profile ruby-cd flags=(complain) {
    include <abstractions/gitaly>
    include <abstractions/ruby-modern>
  }
  profile gitaly-ruby flags=(complain) {
    include <abstractions/gitaly>
    include <abstractions/ruby-modern>

    owner @{GITLAB_BASEDIR}/** rwlk,
    @{GITLAB_APP_DIR}/REVISION r,
    owner @{GITLAB_PRIVATE_SOCKET_DIR}/gitaly/socket.* rwlk,

    /proc/sys/net/core/somaxconn r,

    signal (receive) peer=/usr/lib/gitlab/gitaly/bin/gitaly,

    /usr/lib/git/git                         px -> /gitlab//git,
  }
  profile gitaly flags=(complain) {
     include <abstractions/base>
  }
  profile gitaly-ssh flags=(complain) {
     include <abstractions/base>
  }

  profile du flags=(complain) {
     include <abstractions/base>

     /usr/bin/du rm,
     @{GITLAB_BASEDIR}/** r,
  }

  profile ps flags=(complain) {
    include <abstractions/base>
    include <abstractions/consoles>
    include <abstractions/nameservice>
    /{usr/,}bin/ps rm,
    /proc/sys/kernel/osrelease r,
    /proc/*/stat r,
    /proc/*/cmdline r,
    /proc/uptime r,
    /proc/sys/kernel/pid_max r,
    /proc/ r,
     ptrace,
  }
}

/usr/lib/gitlab/gitaly/git-hooks/gitlab-shell-hook flags=(complain) {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>
  include <abstractions/nameservice>

  /usr/lib/gitlab/gitaly/git-hooks/gitlab-shell-hook r,

  owner @{GITLAB_APP_DIR}/log/gitlab-shell.log rw,

  /bin/bash         rmpx -> /gitlab//bash,
  /usr/bin/dirname  rmcx -> dirname,
  /usr/bin/basename rmcx -> basename,
  /usr/lib/gitlab/gitaly/{vendor/,}gitlab-shell/hooks/post-receive rcx -> post_receive,
  /usr/lib/gitlab/gitaly/{vendor/,}gitlab-shell/hooks/pre-receive  rcx -> pre_receive,
  /usr/lib/gitlab/gitaly/{vendor/,}gitlab-shell/hooks/update       rcx -> update,

  profile basename flags=(complain) {
    include <abstractions/base>

    /usr/bin/basename rm,
  }
  profile dirname flags=(complain) {
    include <abstractions/base>

    /usr/bin/dirname rm,
  }

  profile post_receive flags=(complain) {
    include <abstractions/ruby-modern>
    include <abstractions/gitlab-shell-hooks>
    /usr/lib/gitlab/gitaly/{vendor/,}gitlab-shell/hooks/post-receive r,
  }
  profile pre_receive flags=(complain) {
    include <abstractions/ruby-modern>
    include <abstractions/gitlab-shell-hooks>
    /usr/lib/gitlab/gitaly/{vendor/,}gitlab-shell/hooks/pre-receive r,
  }
  profile update flags=(complain) {
    include <abstractions/ruby-modern>
    include <abstractions/gitlab-shell-hooks>
    /usr/lib/gitlab/gitaly/{vendor/,}gitlab-shell/hooks/update r,
  }
}
07070100000048000081A400000000000000000000000167543FE600000B69000000000000000000000000000000000000005600000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/google-chrome-beta-nordischabi <abi/4.0>,

include <tunables/global>

@{BROWSER} = chrome
@{APPNAME} = @{BROWSER}
@{APPDIR} = /opt/google/chrome-beta
@{BINARY_NAME} = @{BROWSER}
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SANDBOX_PATH} = @{APPDIR}/@{BROWSER}-sandbox
@{NACL_HELPER_PATH} = @{APPDIR}/nacl_helper
@{SOCKET_PATH} = .com.google.Chrome
@{CONFIG_SUBDIR} = google-chrome-beta

profile google-chrome-beta @{APPDIR}/google-chrome-beta {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>

  @{APPDIR}/google-chrome-beta r,

  /usr/bin/mkdir    px -> chromium-helper-mkdir,
  /usr/bin/cat      px -> chromium-helper-cat,
  /usr/bin/touch    px -> chromium-helper-touch,
  /usr/bin/dirname  px -> chromium-helper-dirname,
  /usr/bin/readlink px -> chromium-helper-readlink,
  /usr/bin/which    px -> chromium-helper-which,

  /usr/bin/bash rm,

  # probably for the cat/redirect construct at the end
  owner /proc/@{pid}/fd/* w,

  @{BINARY_PATH} px,
}

profile google-chrome-beta-bin @{APPDIR}/@{BINARY_NAME} {
  include <abstractions/chromium-common>
  include <abstractions/google-chrome>

  @{SANDBOX_PATH}                   px,
  @{APPDIR}/chrome_crashpad_handler px,
  @{APPDIR}/google-chrome-beta      px,
  # we would love to use px, but it leads to NNP
  @{NACL_HELPER_PATH}        rmix,

  signal (send)    peer=google-chrome-beta-*,
  ptrace           peer=google-chrome-beta-*,
  signal (receive) peer=google-chrome-beta-crashpad-handler,

  /proc/@{pid}/cmdline r,
  /proc/@{pid}/mem r,

  include if exists <local/opt.google.chrome.chrome>
  include if exists <local/google-chrome-beta>
}

profile google-chrome-beta-sandbox @{APPDIR}/@{BROWSER}-sandbox {
  include <abstractions/base>
  include <abstractions/google-chrome>

  @{SANDBOX_PATH} rm,

  capability sys_chroot,
  capability sys_admin,
  capability setuid,
  capability setgid,
  capability sys_resource,

  signal (receive) peer=@{BINARY_PATH},
  @{BINARY_PATH} Px -> google-chrome-beta-sandboxed,
}

profile google-chrome-beta-sandboxed {
  include <abstractions/base>
  include <abstractions/google-chrome>
  include <abstractions/fonts>

  @{BINARY_PATH} rm,

  signal (receive) peer=@{BINARY_PATH},
  /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq r,

  /proc/ r,
  /proc/@{pid}/statm r,

  owner /dev/shm/@{SOCKET_PATH}* rwlk,
}

profile google-chrome-beta-nacl-helper @{APPDIR}/nacl_helper {
  include <abstractions/base>
  include <abstractions/google-chrome>
  include <abstractions/fonts>

  @{NACL_HELPER_PATH} rm,

  signal (receive) peer=@{BINARY_PATH},

  /proc/ r,
  /proc/@{pid}/statm r,

  owner /dev/shm/@{SOCKET_PATH}* rwlk,
}

profile google-chrome-beta-crashpad-handler @{APPDIR}/chrome_crashpad_handler {
  include <abstractions/chromium-crash-handler>

  signal receive  peer=google-chrome-beta-bin,
  signal (send)   peer=google-chrome-beta-*,
  ptrace          peer=google-chrome-beta-*,
}07070100000049000081A400000000000000000000000167543FE600000B6A000000000000000000000000000000000000005800000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/google-chrome-stable-nordischabi <abi/4.0>,

include <tunables/global>

@{BROWSER} = chrome
@{APPNAME} = @{BROWSER}
@{APPDIR} = /opt/google/chrome
@{BINARY_NAME} = @{BROWSER}
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SANDBOX_PATH} = @{APPDIR}/@{BROWSER}-sandbox
@{NACL_HELPER_PATH} = @{APPDIR}/nacl_helper
@{SOCKET_PATH} = .com.google.Chrome
@{CONFIG_SUBDIR} = google-chrome

profile google-chrome-stable @{APPDIR}/google-chrome {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>

  @{APPDIR}/google-chrome r,

  /usr/bin/mkdir    px -> chromium-helper-mkdir,
  /usr/bin/cat      px -> chromium-helper-cat,
  /usr/bin/touch    px -> chromium-helper-touch,
  /usr/bin/dirname  px -> chromium-helper-dirname,
  /usr/bin/readlink px -> chromium-helper-readlink,
  /usr/bin/which    px -> chromium-helper-which,

  /usr/bin/bash rm,

  # probably for the cat/redirect construct at the end
  owner /proc/@{pid}/fd/* w,

  @{BINARY_PATH} px,
}

profile google-chrome-stable-bin @{APPDIR}/@{BINARY_NAME} {
  include <abstractions/chromium-common>
  include <abstractions/google-chrome>

  @{SANDBOX_PATH}            px,
  @{APPDIR}/{chrome_,}crashpad_handler  px,
  @{APPDIR}/google-chrome    px,
  # we would love to use px, but it leads to NNP
  @{NACL_HELPER_PATH}        rmix,

  signal (send)    peer=google-chrome-stable-*,
  ptrace           peer=google-chrome-stable-*,
  signal (receive) peer=google-chrome-stable-crashpad-handler,

  /proc/@{pid}/cmdline r,
  /proc/@{pid}/mem r,

  include if exists <local/opt.google.chrome.chrome>
  include if exists <local/google-chrome-stable>
}

profile google-chrome-stable-sandbox @{APPDIR}/@{BROWSER}-sandbox {
  include <abstractions/base>
  include <abstractions/google-chrome>

  @{SANDBOX_PATH} rm,

  capability sys_chroot,
  capability sys_admin,
  capability setuid,
  capability setgid,
  capability sys_resource,

  signal (receive) peer=@{BINARY_PATH},
  @{BINARY_PATH} Px -> google-chrome-stable-sandboxed,
}

profile google-chrome-stable-sandboxed {
  include <abstractions/base>
  include <abstractions/google-chrome>
  include <abstractions/fonts>

  @{BINARY_PATH} rm,

  signal (receive) peer=@{BINARY_PATH},
  /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq r,

  /proc/ r,
  /proc/@{pid}/statm r,

  owner /dev/shm/@{SOCKET_PATH}* rwlk,
}

profile google-chrome-stable-nacl-helper @{APPDIR}/nacl_helper {
  include <abstractions/base>
  include <abstractions/google-chrome>
  include <abstractions/fonts>

  @{NACL_HELPER_PATH} rm,

  signal (receive) peer=@{BINARY_PATH},

  /proc/ r,
  /proc/@{pid}/statm r,

  owner /dev/shm/@{SOCKET_PATH}* rwlk,
}

profile google-chrome-stable-crashpad-handler @{APPDIR}/{chrome_,}crashpad_handler {
  include <abstractions/chromium-crash-handler>

  signal receive  peer=google-chrome-stable-bin,
  signal (send)   peer=google-chrome-stable-*,
  ptrace          peer=google-chrome-stable-*,
}0707010000004A000081A400000000000000000000000167543FE6000002A4000000000000000000000000000000000000004000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/irssiabi <abi/4.0>,

include <tunables/global>
profile irssi /usr/bin/irssi {
  include <abstractions/base>
  include <abstractions/nameservice>
  include <abstractions/perl>
  include <abstractions/openssl>
  include <abstractions/ssl_certs>

  # probably readline wants to know terminal capabilities
  /usr/share/terminfo/**           r,

  /etc/pkcs11/** r,
  /usr/share/p11-kit/** r,
  /usr/lib{64,}/pkcs11/*.so rm,

  /usr/bin/irssi mrix,
  /usr/lib{64,}/irssi/modules/*.so rm,

  /etc/irssi.conf r,
  /usr/share/irssi/** r,

  @{HOME}/.irssi/** rwlk,
  @{HOME}/.irssi.xmpp.debug/** rwlk,

  include if exists <local/usr.bin.irssi>
  include if exists <local/usr.bin.irssi>
}
0707010000004B000081A400000000000000000000000167543FE60000019A000000000000000000000000000000000000005300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/keepassxc-proxy-chromiumabi <abi/4.0>,

include <tunables/global>

profile chromium-keepassxc-proxy {
  include <abstractions/base>
  include <abstractions/vivaldi-ignore-media-codecs>

  /usr/bin/keepassxc-proxy rm,

  /usr/share/icu/*/icu*.dat r,

  /sys/devices/system/cpu/possible r,
  owner /run/user/*/app/ rw,
  owner /run/user/*/app/org.keepassxc.KeePassXC/ rw,
  owner /run/user/*/org.keepassxc.KeePassXC.BrowserServer rw,
}
0707010000004C000081A400000000000000000000000167543FE6000004CD000000000000000000000000000000000000004100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/matrixabi <abi/4.0>,

include <tunables/global>

profile /matrix/synapse {
  include <abstractions/base>
  include <abstractions/python>
  include <abstractions/openssl>
  include <abstractions/ssl_certs>
  include <abstractions/python>
  include <abstractions/nameservice>

  capability net_bind_service,
  network inet  stream,
  network inet6 stream,

  /etc/matrix-synapse/** r,

  owner /var/lib/matrix-synapse/ r,
  owner /var/lib/matrix-synapse/** rwlk,
  owner /var/log/matrix-synapse/ r,
  owner /var/log/matrix-synapse/** rwlk,

  owner /{,var/}tmp/** rwlk,

  /etc/mime.types r,
  /usr/share/misc/magic* r,
  /etc/magic r,
  /usr/share/icu/*/icud*.dat r,

  /usr/lib/python3.[0-9]*/site-packages/pyparsing/__pycache__/ r,
  /usr/lib/python3.[0-9]*/site-packages/pyparsing/__pycache__/** r,
  deny /usr/lib/python3.*/site-packages/**/__pycache__/ w,
  deny /usr/lib/python3.*/site-packages/**/__pycache__/** w,

  @{PROC}/@{pid}/stat r,
  @{PROC}/@{pid}/limits r,
  @{PROC}/@{pid}/mounts r,
  @{PROC}/@{pid}/fd/ r,

  deny /{usr/,}bin/bash rx,
  deny /sbin/ldconfig rx,
  deny /usr/bin/gcc* rx,
  deny /usr/bin/ld* rx,
  deny /usr/{bin,lib,libexec/git}/git rx,
  deny /usr/bin/uname rx,

  include if exists <local/matrix>
}
0707010000004D000081A400000000000000000000000167543FE60000074D000000000000000000000000000000000000004000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/minioabi <abi/4.0>,

include <tunables/global>

profile minio /usr/sbin/minio {
  include <abstractions/base>
  ## include <abstractions/nameservice>
  include <abstractions/ssl_certs>

  /dev/tty r,

  /sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,
  /etc/machine-id r,

  owner /proc/@{pid}/cpuset r,
  owner /proc/@{pid}/mounts r,
  owner /proc/@{pid}/cgroup r,

  /proc/@{pid}/net/dev r,

  /proc/cmdline r,
  /proc/version r,
  /proc/loadavg r,
  /proc/vmstat  r,


  /sys/devices/virtual/block/*/stat r,
  /sys/devices/system/cpu/cpufreq/*/cpuinfo_max_freq r,

  /proc/sys/kernel/osrelease r,
  /proc/sys/net/core/somaxconn r,
  /proc/sys/kernel/threads-max r,
  /sys/devices/virtual/dmi/id/product_uuid r,

  /usr/sbin/minio rm,

  /etc/minio/ r,
  /etc/minio/** r,

  /{usr/,}etc/nsswitch.conf r,
  /etc/passwd r,
  /etc/group r,
  /etc/resolv.conf r,
  /etc/host.conf r,
  /etc/gai.conf r,
  /etc/hosts r,

  /etc/mime.types r,

  network inet dgram,  # probably dns resolving
  network inet6 dgram, # probably dns resolving
  network netlink raw, # more name resolving

  network inet stream,
  network inet6 stream,

  # for binding to 443
  capability net_bind_service,

  owner /var/lib/minio/ r,
  owner /var/lib/minio/** rwlk,

  include if exists <local/minio>
}

profile minio-mc /usr/bin/minio-mc {
  include <abstractions/base>
  ## include <abstractions/nameservice>
  include <abstractions/ssl_certs>
  include <abstractions/consoles>

  /sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,

  owner /proc/@{pid}/cpuset r,

  owner @{HOME}/.mc/ rw,
  owner @{HOME}/.mc/** rw,
  owner @{HOME}/.minio-mc/ rw,
  owner @{HOME}/.minio-mc/** rw,
  owner @{HOME}/.minio-client/ rw,
  owner @{HOME}/.minio-client/** rw,

  /usr/bin/minio-mc rm,
  /usr/bin/minio-client rm,

  include if exists <local/minio-mc>
  include if exists <local/minio-client>
}0707010000004E000081A400000000000000000000000167543FE60000010E000000000000000000000000000000000000004900000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/nextcloud-cronabi <abi/4.0>,

include <tunables/global>

profile nextcloud-cron {
  include <abstractions/base>
  include <abstractions/nameservice>
  include <abstractions/openssl>
  include <abstractions/ssl_certs>
  include <abstractions/php7>
  include <abstractions/nextcloud>
}
0707010000004F000081A400000000000000000000000167543FE6000001C8000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/nextcloud-notify-push#include <tunables/global>

profile nextcloud-notify-push /usr/sbin/nextcloud-notify-push {
  #include <abstractions/base>
  #include <abstractions/base>

  network inet,
  network inet6,

  # probably nameservice
  network raw,

  /proc/@{pid}/cgroup r,
  /proc/@{pid}/mountinfo r,
  /sys/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us r,
  /etc/gai.conf r,

  /var/lib/nscd/passwd r,
  /run/nscd/db* r,

  /srv/www/vhosts/nextcloud/public/config/config.php r,
}
07070100000050000081A400000000000000000000000167543FE60000037C000000000000000000000000000000000000004000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/nginxabi <abi/4.0>,

include <tunables/global>

profile nginx /usr/sbin/nginx flags=(attach_disconnected) {
  include <abstractions/base>
  include <abstractions/nameservice>
  include <abstractions/openssl>
  include <abstractions/perl>
  include <abstractions/ssl_certs>

  capability chown,
  capability setuid,
  capability setgid,
  # opening log files and /var/lib/nginx/ files/directories while we are still root
  capability dac_override,
  capability dac_read_search,
  capability sys_ptrace,

  /etc/nginx/** r,

  /usr/lib{64,}/nginx/modules/*.so rm,

  /{var/,}run/nginx.pid rwlk,

  /var/lib/nginx/   rw,
  /var/lib/nginx/** rwlk,

  /var/log/nginx/** rwlk,

  /srv/www/** r,

  # seems from uname() in src/os/unix/ngx_linux_init.c
  /proc/sys/kernel/osrelease r,
  /proc/1/environ r,
  /proc/cmdline r,

  include if exists <local/usr.sbin.nginx>
  include if exists <local/nginx>
}
07070100000051000081A400000000000000000000000167543FE6000003D6000000000000000000000000000000000000004200000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/oidentd# $Id$
# ------------------------------------------------------------------
#
#    Copyright (C) 2002-2005 Novell/SUSE
#
#    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.
#
# ------------------------------------------------------------------
# vim:syntax=apparmor

abi <abi/4.0>,

include <tunables/global>

profile oidentd /usr/sbin/oidentd {
  include <abstractions/base>
  include <abstractions/nameservice>

  capability net_bind_service,
  capability dac_override,
  capability dac_read_search,
  capability setuid,
  capability setgid,

  network inet  stream,
  network inet6 stream,

  /etc/oidentd.conf        r,
  /etc/oidentd_masq.conf   r,
  /proc/net/tcp            r,
  /proc/net/tcp6           r,

  # spoofing feature of oidentd
  @{HOME}/.ispoof          r,
  @{HOME}/.oidentd.conf    r,
  /var/lib/znc/.oidentd.conf r,
}
07070100000052000081A400000000000000000000000167543FE600000344000000000000000000000000000000000000004200000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/opensshabi <abi/4.0>,

include <tunables/global>

profile sshd /{usr/,}sbin/sshd flags=(attach_disconnected) {
  include <abstractions/openssh-common>

  capability net_bind_service,
  capability sys_chroot,
  capability kill,

  /{usr/,}sbin/sshd px -> sshd_child,

  /usr/libexec/ssh/sshd-session px,

  include if exists <local/sshd>
}

profile sshd_child flags=(attach_disconnected) {
  include <abstractions/openssh-common>
  include <abstractions/openssh-auth>
  include <abstractions/openssl>

  /{usr/,}sbin/sshd px -> sshd_child,
  /usr/libexec/ssh/sshd-session px -> sshd-session,

  include if exists <local/sshd_child>
}

profile sshd-session /usr/libexec/ssh/sshd-session {
  include <abstractions/openssh-common>
  include <abstractions/openssh-auth>

  /usr/libexec/ssh/sshd-session rm,

  include if exists <local/sshd_child>
}07070100000053000081A400000000000000000000000167543FE60000026E000000000000000000000000000000000000004400000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/pgbouncerabi <abi/4.0>,

include <tunables/global>

profile pgbouncer /usr/sbin/pgbouncer {
  include <abstractions/base>
  include <abstractions/nameservice>
  include <abstractions/openssl>
  include <abstractions/perl>
  include <abstractions/ssl_certs>

  capability dac_override,
  capability dac_read_search,
  capability setgid,
  capability setuid,

  /usr/sbin/pgbouncer rm,

  /etc/pgbouncer/ r,
  /etc/pgbouncer/* r,

  owner /var/log/pgbouncer/pgbouncer.log rw,
  owner /run/pgbouncer/pgbouncer.pid rw,
  owner /tmp/.s.PGSQL.* rw,

  include if exists <local/usr.sbin.pgbouncer>
  include if exists <local/pgbouncer>
}
07070100000054000081A400000000000000000000000167543FE600000738000000000000000000000000000000000000004B00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/php-fpm-nordisch# vim: ft=apparmor

#
# LICENSED UNDER AGPL 3.0
#

abi <abi/4.0>,

include <tunables/global>

profile php-fpm /usr/sbin/php-fpm* flags=(attach_disconnected) {
  # load common libraries and their support files
  include <abstractions/base>
  # resolve hostnames/usernames
  include <abstractions/nameservice>
  # common php files and support files that php needs
  include <abstractions/php>
  # read openssl configuration
  include <abstractions/php-fixes>
  include <abstractions/openssl>
  # read the system certificates
  include <abstractions/ssl_certs>

  /etc/php{,5,7}/** r,

  capability net_admin,
  # change user/group of a pool
  capability setuid,
  capability setgid,
  # change ownership of the socket so that we can launch with a different user/group as the socket will be owned by
  capability chown,
  # we want to be able to kill our child processes
  capability kill,
  # to provide sockets with acls different than root
  capability dac_override,

  # we need write access here to move it into a different apparmor sub profile
  @{PROC}/@{pid}/attr/{apparmor/,}current rw,

  # the main log file
  /var/log/php*-fpm.log rw,

  # we need to be able to create all sockets
  @{run}/php{,-fpm}/php*-fpm.pid rw,
  @{run}/php{,-fpm}/php*-fpm.sock rwlk,
  @{run}/php{,-fpm}/*.socket rwlk,

  # to reload
  /usr/sbin/php-fpm* rix,

  # no idea why php tries to open / read/write
  deny / rw,

  # allow sending signals to our subprocesses
  signal (send) peer=php-fpm//*,

  # allow switching processes to those subprofiles
  change_profile -> php-fpm//*,

  # load all files from this directory
  # store your configurations per pool in this dir
  include if exists <php-fpm.d>

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/usr.sbin.php-fpm>
  include if exists <local/php-fpm>
}
07070100000055000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000004400000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/php-fpm.d07070100000056000081A400000000000000000000000167543FE6000001F0000000000000000000000000000000000000004C00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/php-fpm.d/default#
# LICENSED UNDER AGPL 3.0
#
  profile default flags=(attach_disconnected) {
    include <abstractions/php-fpm>
    /srv/www/** r,
    owner /tmp/ r,
    owner /tmp/** rwlk,

    ###
    # include snippets provides e.g. by plugin directories
    #
    # We use the directory layout for abstraction includes in AppArmor 3
    #
    include if exists <php-fpm.d/default.d>
    #
    # allow admins to add snippets as well.
    #
    include if exists <local/php-fpm.d/default.d>
    #
    ###
  }
07070100000057000081A400000000000000000000000167543FE60000040E000000000000000000000000000000000000004E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/php-fpm.d/nextcloud  profile nextcloud flags=(attach_disconnected) {
    include <abstractions/php-fpm>

    /var/log/nextcloud/nextcloud.log rwlk,

    /srv/www/vhosts/nextcloud/public/ r,
    /srv/www/vhosts/nextcloud/public/** r,
    /srv/www/vhosts/nextcloud/public/config/config.php k,
    /srv/www/vhosts/nextcloud/public/config/*.config.php k,
    /srv/www/vhosts/nextcloud/data/**   rwlk,
    owner /srv/www/vhosts/nextcloud/tmp/      r,
    /srv/www/vhosts/nextcloud/tmp/**    rwlk,
    owner /srv/www/vhosts/nextcloud/sessions/ r,
    owner /srv/www/vhosts/nextcloud/sessions/** rwlk,

    # required for sending emails seems to ignore the tmp dir setting in the pool
    owner /tmp/** rwlk,

    deny /{usr/,}bin/bash rx,
    ###
    # include snippets provides e.g. by plugin directories
    #
    # We use the directory layout for abstraction includes in AppArmor 3
    #
    include if exists <php-fpm.d/nextcloud.d>
    #
    # allow admins to add snippets as well.
    #
    include if exists <local/php-fpm.d/nextcloud.d>
    #
    ###
  }
07070100000058000081A400000000000000000000000167543FE6000003C8000000000000000000000000000000000000005200000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/php-fpm.d/roundcubemail  profile roundcubemail flags=(attach_disconnected) {
    include <abstractions/php-fpm>

    /etc/roundcubemail/ r,
    /etc/roundcubemail/** r,

    /var/log/roundcubemail/ r,
    /var/log/roundcubemail/** rwlk,

    /srv/www/vhosts/roundcubemail/public/ r,
    /srv/www/vhosts/roundcubemail/public/** r,
    /srv/www/vhosts/roundcubemail/public/config/config.php k,
    owner /srv/www/vhosts/roundcubemail/data/** rwlk,
    owner /srv/www/vhosts/roundcubemail/tmp/ r,
    owner /srv/www/vhosts/roundcubemail/tmp/** rwlk,
    owner /srv/www/vhosts/roundcubemail/sessions/ r,
    owner /srv/www/vhosts/roundcubemail/sessions/** rwlk,

    ###
    # include snippets provides e.g. by plugin directories
    #
    # We use the directory layout for abstraction includes in AppArmor 3
    #
    include if exists <php-fpm.d/roundcubemail.d>
    #
    # allow admins to add snippets as well.
    #
    include if exists <local/php-fpm.d/roundcubemail.d>
    #
    ###
  }
07070100000059000081A400000000000000000000000167543FE6000003AF000000000000000000000000000000000000004B00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/php-fpm.d/tt-rss  profile tt-rss flags=(attach_disconnected) {
    include <abstractions/php-fpm>

    /var/log/tt-rss/tt-rss.log wlk,

    /srv/www/vhosts/tt-rss/public/ r,
    /srv/www/vhosts/tt-rss/public/** r,
    /srv/www/vhosts/tt-rss/public/config/config.php k,

    owner /srv/www/vhosts/tt-rss/public/feed-icons/** rwlk,
    owner /srv/www/vhosts/tt-rss/public/cache/feed-icons/** rwlk,
    owner /srv/www/vhosts/tt-rss/public/lock/* rwlk,

    owner /srv/www/vhosts/tt-rss/data/** rwlk,
    owner /srv/www/vhosts/tt-rss/tmp/** rwlk,
    owner /srv/www/vhosts/tt-rss/sessions/ r,
    owner /srv/www/vhosts/tt-rss/sessions/** rwlk,

    ###
    # include snippets provides e.g. by plugin directories
    #
    # We use the directory layout for abstraction includes in AppArmor 3
    #
    include if exists <php-fpm.d/tt-rss.d>
    #
    # allow admins to add snippets as well.
    #
    include if exists <local/php-fpm.d/tt-rss.d>
    #
    ###
  }
0707010000005A000081A400000000000000000000000167543FE600000194000000000000000000000000000000000000005A00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/plasma-browser-integration-hostabi <abi/4.0>,

include <tunables/global>

profile plasma-browser-integration-host {
    include <abstractions/base>
    include <abstractions/kde>

    /proc/sys/kernel/core_pattern r,

    owner @{HOME}/.cache/icon-cache.kcache rmwlk,

    /usr/bin/plasma-browser-integration-host rm,

    /usr/share/icu/*/icu*.dat r,
    /usr/share/plasma/** r,
    /usr/share/icons/** r,
    /usr/share/mime/** r,
}
0707010000005B000081A400000000000000000000000167543FE6000003B4000000000000000000000000000000000000004000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/redis#
# LICENSED UNDER AGPL 3.0
#
abi <abi/4.0>,

include <tunables/global>


##################################################################
#
# All the actual profiles are assigned via
#
# /usr/lib/systemd/system/redis@.service.d/apparmor.conf
#
# For a normal redis server:
#
# copy /etc/apparmor.d/redis.d/redis.template to
#      /etc/apparmor.d/redis.d/redis.<instancename>
#
# The paths have to match /etc/redis/<instancename>.conf
#
##################################################################

##################################################################
#
# /usr/lib/systemd/system/redis-sentinel@.service.d/apparmor.conf
#
# For a normal redis-sentinel server:
#
# copy /etc/apparmor.d/redis.d/sentinel.template to
#      /etc/apparmor.d/redis.d/sentinel.<instancename>
#
# The paths have to match /etc/redis/sentinel-<instancename>.conf
#
##################################################################

include <redis.d>
0707010000005C000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000004200000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/redis.d0707010000005D000081A400000000000000000000000167543FE6000001CE000000000000000000000000000000000000005100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/redis.d/redis.template#
# LICENSED UNDER AGPL 3.0
#
# copy /etc/apparmor.d/redis.d/redis.template to
#      /etc/apparmor.d/redis.d/redis.<instancename>
#
# The paths have to match /etc/redis/<instancename>.conf
#
# profile redis.template flags=(attach_disconnected) {
#   include <abstractions/redis>
#
#   /{var/,}run/redis/template.pid rwlk,
#   /etc/redis/template.conf r,
#   /var/lib/redis/template/ r,
#   /var/lib/redis/template/** rw,
#   /var/log/redis/template.log rw,
# }
0707010000005E000081A400000000000000000000000167543FE6000001D6000000000000000000000000000000000000005400000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/redis.d/sentinel.template#
# LICENSED UNDER AGPL 3.0
#
# copy /etc/apparmor.d/redis.d/sentinel.template to
#      /etc/apparmor.d/redis.d/sentinel.<instancename>
#
# The paths have to match /etc/redis/sentinel-<instancename>.conf
#
# profile redis-sentinel.template flags=(attach_disconnected) {
#   include <abstractions/redis>
#
#   /{var/,}run/redis/sentinel-template.pid rwlk,
#   /etc/redis/sentinel-template.conf rw,
#   /var/lib/redis/ r,
#   /var/log/redis/sentinel-template.log rw,
# }
0707010000005F000081A400000000000000000000000167543FE60000066D000000000000000000000000000000000000005200000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/signal-desktop-nordischabi <abi/4.0>,

#
# This profile is for the signal-desktop/electron package in obs://network:im:signal
#

include <tunables/global>

@{BROWSER} = signal-desktop
@{APPNAME} = @{BROWSER}
@{APPDIR} = /usr/lib{,64,exec}/@{APPNAME}
@{BINARY_NAME} = @{BROWSER}
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SOCKET_PATH} = .org.chromium.Chromium
@{CONFIG_SUBDIR} = Signal
@{chromium_profile_name} = signal-desktop

profile signal-desktop-wrapper /usr/bin/signal-desktop {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>

  /usr/bin/signal-desktop r,
  /{usr/,}bin/bash rm,

  # can not clear env as we need that NODE_ENV variable
  /usr/bin/electron px -> signal-desktop-electron,
}

profile signal-desktop-electron {
  include <abstractions/electron-shell-wrapper>

  # TODO: if we get this to work we can move it to the abstraction
  #  /usr/lib{64,}/electron/electron px -> @{chromium_profile_name}
  /usr/lib{64,}/electron/electron px -> signal-desktop,
}

profile signal-desktop {
  include <abstractions/electron>

  /usr/lib{64,}/electron/electron px -> signal-desktop,
  /usr/lib64/electron/chrome_crashpad_handler px -> signal-desktop-chrash-handler,

  signal (receive) peer=signal-desktop-chrash-handler,

  audit deny /usr/bin/xdg-open x,

  /sys/fs/cgroup/user.slice/cpu.max r,

  audit /{usr/,}bin/xdg-settings px -> chromium-xdg-settings,

  include if exists <local/signal-desktop>
}

profile signal-desktop-chrash-handler {
  include <abstractions/chromium-crash-handler>

  signal receive  peer=signal-desktop,
  signal (send)   peer=signal-desktop,
  ptrace          peer=signal-desktop,
}07070100000060000081A400000000000000000000000167543FE600000609000000000000000000000000000000000000004900000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/teams-nordischabi <abi/4.0>,

include <tunables/global>

@{BROWSER} = teams
@{APPNAME} = @{BROWSER}
@{APPDIR} = /usr/share/@{APPNAME}
@{BINARY_NAME} = @{BROWSER}
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SOCKET_PATH} = .org.chromium.Chromium
@{CONFIG_SUBDIR} = "Microsoft/Microsoft Teams"

profile teams /usr/share/teams/teams {
  include <abstractions/chromium-common>
  include <abstractions/teams>
  include <abstractions/consoles>

  signal (send) peer=teams//*,
  ptrace        peer=teams//*,

  signal        peer=lsb_release,
  ptrace        peer=lsb_release,

  ptrace        peer=teams,

  /proc/@{pid}/cmdline r,
  /proc/@{pid}/mem r,
  owner /proc/@{pid}/task/*/comm rw,

  owner /run/user/*/teams* rw,

  owner @{HOME}/.config/teams/ rw,
  owner @{HOME}/.config/teams/** rw,

  @{APPDIR}/**/*.node m,

  /usr/share/icu/*/icu*.dat r,

  # also name resolving?
  network netlink dgram,

  deny /sys/devices/system/cpu/cpu*/ r,
  deny /proc/sys/kernel/ostype r,
  deny /proc/sys/kernel/osrelease r,
  deny /proc/version r,

  deny /usr/bin/locale x, # This is super ugly because the file descriptors are not cloexec and it would inherit all the parent FDs

  deny @{HOME}/.fonts/.uuid      wl,
  deny /usr/share/fonts/**/.uuid wl,

  /usr/bin/lsb_release Px -> lsb_release,

  # this should probably be in some abstraction
  /var/cache/libx11/compose/* r,
  deny /var/cache/libx11/compose/* wlk,

  /sys/devices/**/net/*/speed r,

  /dev/shm/shm-@{pid}-* rw,

  deny @{HOME}/.config/autostart/teams.desktop rw,

  include if exists <local/teams>
}
07070100000061000081A400000000000000000000000167543FE60000068A000000000000000000000000000000000000004B00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/teamspeak-clientabi <abi/4.0>,

include <tunables/global>

profile teamspeak-client /usr/libexec/teamspeak3/client/ts3client_linux_amd64  {
  include <abstractions/base>
  include <abstractions/nameservice>
  include <abstractions/X>
  include <abstractions/gnome>
  include <abstractions/fonts>
  include <abstractions/nvidia>
  include <abstractions/audio>
  include <abstractions/p11-kit-files>
  include <abstractions/nssdb-user-files>

  capability sys_admin,
  capability sys_chroot,
  capability sys_ptrace,

  /etc/hosts r,
  /etc/resolv.conf r,

  /usr/libexec/teamspeak3/client/** r,
  /usr/libexec/teamspeak3/client/ts3client_linux_amd64 rm,
  /usr/libexec/teamspeak3/client/**/*.so* rm,
  /usr/libexec/teamspeak3/client/*.so* rm,
  /usr/libexec/teamspeak3/client/QtWebEngineProcess rmix,


  owner /proc/@{pid}/comm r,
  owner /proc/@{pid}/mem r,
  owner /proc/@{pid}/stat r,
  owner /proc/@{pid}/task/ r,
  owner /proc/@{pid}/task/*/{comm,status} r,

  owner /proc/@{pid}/oom_score_adj w,
  owner /proc/@{pid}/gid_map w,
  owner /proc/@{pid}/uid_map w,
  /proc/ r,


  owner /proc/@{pid}/fd/ r,
  owner /proc/@{pid}/setgroups w,
  /proc/vmstat r,
  /sys/bus/pci/devices/ r,
  /proc/devices r,

  owner @{HOME}/.ts3client/ rw,
  owner @{HOME}/.ts3client/** rwlk,
  owner "@{HOME}/.local/share/TeamSpeak 3/" rw,
  owner "@{HOME}/.local/share/TeamSpeak 3/**" rw,

  owner @{HOME}/.cache/qtshadercache/** rw,

  /etc/udev/udev.conf r,
  /usr/share/hwdata/pnp.ids r,

  /sys/devices/**/{vendor,device,class} r,

  deny /etc/machine-id r,

  /dev/shm/ r,
  owner /dev/shm/.org.chromium.Chromium.* rw,

  network inet,
  network inet6,

  include if exists <local/teamspeak-client>
}
07070100000062000081A400000000000000000000000167543FE60000036A000000000000000000000000000000000000004B00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/tmate-ssh-serverabi <abi/4.0>,

include <tunables/global>

@{TMATE_WORK_DIR}=/run/tmate-ssh-server

profile tmate-ssh-server /usr/bin/tmate-ssh-server flags=(attach_disconnected) {
  include <abstractions/base>
  include <abstractions/nameservice>
  include <abstractions/consoles>
  include <abstractions/openssl>

  capability sys_chroot,
  capability sys_admin,
  capability setgid,
  capability setuid,

  /usr/bin/tmate-ssh-server rm,

  @{TMATE_WORK_DIR}/           rw,
  @{TMATE_WORK_DIR}/sessions/  rw,
  @{TMATE_WORK_DIR}/sessions/* rwlk,
  @{TMATE_WORK_DIR}/jail/      rw,

  /etc/libssh/libssh_server.config r,
  /etc/ssh/sshd_config r,

  /etc/tmate-ssh-server/keys/ r,
  /etc/tmate-ssh-server/keys/** r,
  deny /etc/ssh/ssh_host_* r,

  /usr/share/terminfo/   r,
  /usr/share/terminfo/** r,

  /etc/tmux.conf r,

  /dev/ptmx rw,

  include if exists <local/tmate-ssh-server>
}
07070100000063000081A400000000000000000000000167543FE600000352000000000000000000000000000000000000004F00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/tt-rss-update-daemonabi <abi/4.0>,

include <tunables/global>

profile tt-rss-update-daemon /srv/www/vhosts/tt-rss/public/update_daemon2.php {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>
  include <abstractions/nameservice>
  include <abstractions/openssl>
  include <abstractions/ssl_certs>
  include <abstractions/php>
  include <abstractions/php-fixes>

  capability kill,

  /usr/bin/php rmix,
  /{usr/,}bin/bash rmix,

  /srv/www/vhosts/tt-rss/tmp/sys_temp/** rw,
  /srv/www/vhosts/tt-rss/public/lock/update_daemon*.lock rwlk,
  /srv/www/vhosts/tt-rss/public/lock/*stamp rwlk,
  /srv/www/vhosts/tt-rss/public/cache/** rw,
  /srv/www/vhosts/tt-rss/public/feed-icons/** rw,
  /srv/www/vhosts/tt-rss/public/** r,
  /var/log/tt-rss/updater.log rwlk,

  deny /dev/null.*.tmp rw,

  /sys/devices/system/cpu/possible r,
}
07070100000064000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000004300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/tunables07070100000065000081A400000000000000000000000167543FE600000113000000000000000000000000000000000000004A00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/tunables/gitlab@{GITLAB_BASEDIR}=/srv/gitlab

@{GITLAB_PAGES_BASEDIR}=/srv/gitlab-pages

@{GITLAB_RUNNER_BASEDIR}=/srv/gitlab-runner

@{GITLAB_APP_DIR}=/srv/www/vhosts/gitlab-ce

@{GITLAB_SOCKET_DIR}=@{GITLAB_APP_DIR}/tmp/sockets

@{GITLAB_PRIVATE_SOCKET_DIR}=@{GITLAB_SOCKET_DIR}/private/
07070100000066000081A400000000000000000000000167543FE600000587000000000000000000000000000000000000005800000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/vivaldi-shell-wrapper-helpersabi <abi/4.0>,

include <tunables/global>

profile vivaldi-helper-cat {
  include <abstractions/base>
  include <abstractions/vivaldi-media-codecs>
  /usr/bin/cat rm,
}

profile vivaldi-helper-head {
  include <abstractions/base>
  include <abstractions/vivaldi-media-codecs>
  /usr/bin/head rm,
}

profile vivaldi-helper-sed {
  include <abstractions/base>
  include <abstractions/vivaldi-media-codecs>
  /usr/bin/sed rm,
}

profile vivaldi-helper-ldd {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/vivaldi-media-codecs>
  include <abstractions/consoles>

  /usr/bin/ldd r,
  /{,usr}/bin/bash rm,
}

profile vivaldi-helper-dirname {
  include <abstractions/base>
  include <abstractions/vivaldi-media-codecs>

  /usr/bin/dirname rm,
}

profile vivaldi-helper-which {
  include <abstractions/base>
  include <abstractions/vivaldi-media-codecs>

  /usr/bin/which rm,
}

profile vivaldi-helper-readlink {
  include <abstractions/base>
  include <abstractions/vivaldi-media-codecs>

  /usr/bin/readlink rm,
}

profile vivaldi-helper-mkdir {
  include <abstractions/base>
  include <abstractions/vivaldi-media-codecs>

  /usr/bin/mkdir rm,
  owner @{HOME}/.local/share/applications/ rw,
}

profile vivaldi-helper-touch {
  include <abstractions/base>
  include <abstractions/vivaldi-media-codecs>

  /usr/bin/mkdir rm,
  owner @{HOME}/.local/share/applications/mimeapps.list rw,
}07070100000067000081A400000000000000000000000167543FE600000A6B000000000000000000000000000000000000005400000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/vivaldi-snapshot-nordischabi <abi/4.0>,

include <tunables/global>

@{BROWSER} = vivaldi
@{APPNAME} = @{BROWSER}-snapshot
@{APPDIR} = /opt/@{APPNAME}
@{BINARY_NAME} = @{BROWSER}-bin
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SANDBOX_PATH} = @{APPDIR}/@{BROWSER}-sandbox
@{VARDIR}       = /var@{APPDIR}
@{SOCKET_PATH}  = .com.vivaldi
@{CONFIG_SUBDIR} = @{APPNAME}

profile vivaldi-snapshot @{APPDIR}/vivaldi-snapshot {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>
  include <abstractions/vivaldi-media-codecs>

  @{APPDIR}/vivaldi-snapshot r,

  /usr/bin/mkdir    px -> vivaldi-helper-mkdir,
  /usr/bin/cat      px -> vivaldi-helper-cat,
  /usr/bin/touch    px -> vivaldi-helper-touch,
  /usr/bin/dirname  px -> vivaldi-helper-dirname,
  /usr/bin/readlink px -> vivaldi-helper-readlink,
  /usr/bin/which    px -> vivaldi-helper-which,
  /usr/bin/ldd      px -> vivaldi-helper-ldd,
  /usr/bin/head     px -> vivaldi-helper-head,
  /usr/bin/sed      px -> vivaldi-helper-sed,

  /usr/bin/bash rm,

  # TODO: update-ffmpeg update-widevine

  # probably for the cat/redirect construct at the end
  owner /proc/@{pid}/fd/* w,

  @{BINARY_PATH} px,
}

profile vivaldi-snapshot-bin @{APPDIR}/vivaldi-bin {
  include <abstractions/chromium-common>
  include <abstractions/vivaldi>

  @{APPDIR}/vivaldi-snapshot  px,

  @{SANDBOX_PATH}             px,
  @{APPDIR}/{chrome_,}crashpad_handler  px,

  signal (send)    peer=vivaldi-snapshot-*,
  ptrace           peer=vivaldi-snapshot-*,
  signal (receive) peer=vivaldi-snapshot-crashpad-handler,

  include if exists <local/opt.vivaldi-snapshot.vivaldi-bin>
  include if exists <local/vivaldi-snapshot-bin>
}

profile vivaldi-snapshot-sandbox {
  include <abstractions/base>
  include <abstractions/vivaldi>

  @{SANDBOX_PATH} rm,

  capability sys_chroot,
  capability sys_admin,
  capability setuid,
  capability setgid,
  capability sys_resource,

  signal (receive) peer=vivaldi-snapshot-bin,
  @{BINARY_PATH} Px -> vivaldi-snapshot-sandboxed,
}

profile vivaldi-snapshot-sandboxed {
  include <abstractions/base>
  include <abstractions/vivaldi>
  include <abstractions/fonts>

  @{BINARY_PATH} rm,

  signal (receive) peer=vivaldi-snapshot-bin,

  /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq r,

  /proc/ r,
  /proc/@{pid}/statm r,

  owner /dev/shm/@{SOCKET_PATH}.* rwlk,
}

profile vivaldi-snapshot-crashpad-handler @{APPDIR}/{chrome_,}crashpad_handler {
  include <abstractions/chromium-crash-handler>
  include <abstractions/vivaldi-media-codecs>

  signal receive  peer=vivaldi-snapshot-bin,
  signal (send)   peer=vivaldi-snapshot-*,
  ptrace          peer=vivaldi-snapshot-*,
}
07070100000068000081A400000000000000000000000167543FE600000A2E000000000000000000000000000000000000005200000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/vivaldi-stable-nordischabi <abi/4.0>,

include <tunables/global>

@{BROWSER} = vivaldi
@{APPNAME} = @{BROWSER}
@{APPDIR} = /opt/@{APPNAME}
@{BINARY_NAME} = @{BROWSER}-bin
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SANDBOX_PATH} = @{APPDIR}/@{BROWSER}-sandbox
@{VARDIR}       = /var@{APPDIR}
@{SOCKET_PATH}  = .com.vivaldi
@{CONFIG_SUBDIR} = @{APPNAME}

profile vivaldi-stable @{APPDIR}/vivaldi {
  include <abstractions/base>
  include <abstractions/bash>
  include <abstractions/consoles>
  include <abstractions/vivaldi-media-codecs>

  @{APPDIR}/vivaldi r,

  /usr/bin/mkdir    px -> vivaldi-helper-mkdir,
  /usr/bin/cat      px -> vivaldi-helper-cat,
  /usr/bin/touch    px -> vivaldi-helper-touch,
  /usr/bin/dirname  px -> vivaldi-helper-dirname,
  /usr/bin/readlink px -> vivaldi-helper-readlink,
  /usr/bin/which    px -> vivaldi-helper-which,
  /usr/bin/ldd      px -> vivaldi-helper-ldd,
  /usr/bin/head     px -> vivaldi-helper-head,
  /usr/bin/sed      px -> vivaldi-helper-sed,
  /usr/bin/bash rm,

  # TODO: update-ffmpeg update-widevine

  # probably for the cat/redirect construct at the end
  owner /proc/@{pid}/fd/* w,

  @{BINARY_PATH} px,
}

profile vivaldi-stable-bin @{APPDIR}/vivaldi-bin {
  include <abstractions/chromium-common>
  include <abstractions/vivaldi>

  @{APPDIR}/vivaldi           px,

  @{SANDBOX_PATH}             px,
  @{APPDIR}/{chrome_,}crashpad_handler  px,

  signal (send)    peer=vivaldi-stable-*,
  ptrace           peer=vivaldi-stable-*,
  signal (receive) peer=vivaldi-stable-crashpad-handler,

  include if exists <local/opt.vivaldi-stable.vivaldi-bin>
  include if exists <local/vivaldi-stable-bin>
}

profile vivaldi-stable-sandbox {
  include <abstractions/base>
  include <abstractions/vivaldi>

  @{SANDBOX_PATH} rm,

  capability sys_chroot,
  capability sys_admin,
  capability setuid,
  capability setgid,
  capability sys_resource,

  signal (receive) peer=vivaldi-stable-bin,
  @{BINARY_PATH} Px -> vivaldi-stable-sandboxed,
}

profile vivaldi-stable-sandboxed {
  include <abstractions/base>
  include <abstractions/vivaldi>
  include <abstractions/fonts>

  @{BINARY_PATH} rm,

  signal (receive) peer=vivaldi-stable-bin,
  /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq r,

  /proc/ r,
  /proc/@{pid}/statm r,

  owner /dev/shm/@{SOCKET_PATH}.* rwlk,
}

profile vivaldi-stable-crashpad-handler @{APPDIR}/{chrome_,}crashpad_handler {
  include <abstractions/chromium-crash-handler>
  include <abstractions/vivaldi-media-codecs>

  signal receive  peer=vivaldi-stable-bin,
  signal (send)   peer=vivaldi-stable-*,
  ptrace          peer=vivaldi-stable-*,
}
07070100000069000081A400000000000000000000000167543FE600000B0E000000000000000000000000000000000000004A00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/vscode-nordischabi <abi/4.0>,

include <tunables/global>

@{BROWSER} = code
@{APPNAME} = @{BROWSER}
@{APPDIR} = /usr/share/@{APPNAME}
@{BINARY_NAME} = @{BROWSER}
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SOCKET_PATH} = .org.chromium.Chromium
@{CONFIG_SUBDIR} = Code

profile vscode /usr/share/code/code {
  include <abstractions/chromium-common>
  include <abstractions/vscode>
  include <abstractions/consoles>

  signal (send) peer=vscode-*,
  ptrace        peer=vscode-*,

  signal        peer=lsb_release,
  ptrace        peer=lsb_release,

  deny /proc/version r,

  owner @{HOME}/.cache/typescript/ rw,
  owner @{HOME}/.cache/typescript/** rwlk,

  /proc/@{pid}/cmdline r,
  /proc/@{pid}/mem r,
  owner /proc/@{pid}/task/*/comm rw,

  owner @{HOME}/.vscode/ r,
  owner @{HOME}/.vscode/** rwlk,

  owner /run/user/*/vscode* rw,

  @{APPDIR}/**/*.node m,

  /usr/lib{exec,}/git/git Ux,
  /usr/lib{exec,}/git/git-write-tree Ux,

  /usr/share/icu/*/icu*.dat r,

  deny @{HOME}/.fonts/.uuid      wl,
  deny /usr/share/fonts/**/.uuid wl,
  deny /etc/shells r,
  deny /{usr/,}bin/zsh x,

  deny @{HOME}/bin/      r,
  deny /usr/local/{s,}bin/ r,
  deny /usr/{s,}bin/ r,
  deny /opt/ r,

  deny /usr/bin/python* rx,

  deny /usr/bin/xdg-open rx,

  deny /proc/uptime r,

  /usr/bin/lsb_release Px -> lsb_release,

  @{APPDIR}/resources/app/node_modules{,.asar.unpacked}/@vscode/ripgrep/bin/rg px,
  @{APPDIR}/resources/app/node_modules{,.asar.unpacked}/@vscode/vsce-sign/bin/vsce-sign Px,

  deny @{APPDIR}/bin/code-tunnel x,

  include if exists <local/vscode>
}

profile vscode-rg @{APPDIR}/resources/app/node_modules{,.asar.unpacked}/@vscode/ripgrep/bin/rg flags=(attach_disconnected) {
  include <abstractions/base>
  include <abstractions/fonts>
  include <abstractions/consoles>
  include if exists <local/vscode>

  @{APPDIR}/resources/app/node_modules{,.asar.unpacked}/@vscode/ripgrep/bin/rg rm,
  /sys/kernel/mm/transparent_hugepage/enabled r,
  /sys/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us r,
  owner /proc/@{pid}/cgroup r,
  owner /proc/@{pid}/mountinfo r,

  # inherited file handles (no CLO_EXEC)
  @{APPDIR}/** r,
  @{APPDIR}/**/*.node m,

  owner /dev/shm/@{SOCKET_PATH}* rwlk,
  owner /proc/@{pid}/statm r,

  deny /tmp/@{SOCKET_PATH}* rwlk,
  deny @{HOME}/.config/Code/** rwlk,
  deny network netlink raw,

  signal (receive) peer=vscode,

  # inherited file handles
  owner @{HOME}/.config/@{CONFIG_SUBDIR}/logs/**/*.log a,

  #/ inherited file handles (no CLO_EXEC)
}


profile vscode-code-tunnel @{APPDIR}/bin/code-tunnel {
  include <abstractions/base>
  @{APPDIR}/bin/code-tunnel rm,
}

profile vscode-vsce-sign @{APPDIR}/resources/app/node_modules{,.asar.unpacked}/@vscode/vsce-sign/bin/vsce-sign {
  include <abstractions/base>
  @{APPDIR}/resources/app/node_modules{,.asar.unpacked}/@vscode/vsce-sign/bin/vsce-sign rm,
}
0707010000006A000081A400000000000000000000000167543FE600000980000000000000000000000000000000000000004C00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/vscodium-nordischabi <abi/4.0>,

include <tunables/global>

@{BROWSER} = codium
@{APPNAME} = @{BROWSER}
@{APPDIR} = /usr/share/@{APPNAME}
@{BINARY_NAME} = @{BROWSER}
@{BINARY_PATH} = @{APPDIR}/@{BINARY_NAME}
@{SANDBOX_PATH} = @{APPDIR}/chrome-sandbox
@{SOCKET_PATH} = .org.chromium.Chromium
@{CONFIG_SUBDIR} = Code-OSS

profile vscodium /usr/share/codium/codium {
  include <abstractions/chromium-common>
  include <abstractions/vscodium>
  include <abstractions/consoles>

  @{SANDBOX_PATH}     px,
  signal (send) peer=vscodium-*,
  ptrace        peer=vscodium-*,

  signal        peer=lsb_release,
  ptrace        peer=lsb_release,

  /proc/@{pid}/cmdline r,
  /proc/@{pid}/mem r,

  owner @{HOME}/.vscode-oss/ r,
  owner @{HOME}/.vscode-oss/** rwlk,

  owner /run/user/*/vscode* rw,

  @{APPDIR}/**/*.node m,

  /usr/lib{exec,}/git/git Ux,
  /usr/lib{exec,}/git/git-write-tree Ux,

  /usr/share/icu/*/icu*.dat r,

  deny @{HOME}/.fonts/.uuid      wl,
  deny /usr/share/fonts/**/.uuid wl,

  /usr/bin/lsb_release Px -> lsb_release,

  @{APPDIR}/resources/app/node_modules{,.asar.unpacked}/vscodium-ripgrep/bin/rg px,

  include if exists <local/vscodium>
}

profile vscodium-rg @{APPDIR}/resources/app/node_modules{,.asar.unpacked}/vscodium-ripgrep/bin/rg {
  include <abstractions/base>
  include <abstractions/fonts>
  include <abstractions/consoles>
  include if exists <local/vscodium>

  @{APPDIR}/resources/app/node_modules{,.asar.unpacked}/vscodium-ripgrep/bin/rg rm,

  # inherited file handles (no CLO_EXEC)
  @{APPDIR}/** r,
  @{APPDIR}/**/*.node m,


  # inherited file handles
  owner @{HOME}/.config/@{CONFIG_SUBDIR}/logs/**/*.log a,

  owner /dev/shm/@{SOCKET_PATH}* rwlk,
  #/ inherited file handles (no CLO_EXEC)
}

# keep in sync with google-chrome-stable
profile vscodium-sandbox @{APPDIR}/chrome-sandbox {
  include <abstractions/base>
  include <abstractions/vscodium>

  @{SANDBOX_PATH} rm,

  capability sys_chroot,
  capability sys_admin,
  capability setuid,
  capability setgid,
  capability sys_resource,

  signal (receive) peer=@{BINARY_PATH},
  @{BINARY_PATH} Px -> vscodium-sandboxed,
}

profile vscodium-sandboxed {
  include <abstractions/base>
  include <abstractions/vscodium>
  include <abstractions/fonts>

  @{BINARY_PATH} rm,

  signal (receive) peer=@{BINARY_PATH},
  /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq r,

  /proc/ r,
  /proc/@{pid}/statm r,

  owner /dev/shm/@{SOCKET_PATH}* rwlk,
}
0707010000006B000081A400000000000000000000000167543FE600000874000000000000000000000000000000000000004600000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/wine-lutrisabi <abi/4.0>,

include <tunables/global>
@{games_dir}     = @{HOME}/Games/
@{wine_base_dir} = @{HOME}/.local/share/lutris/runners/wine/*

# so why arent we using  wine_base_dir here in this path?
# well it looks like this current version matches, while using wine_base_dir here makes it fail?
# i suspect it is about recursive variable expansion.
profile wine-lutris-server @{HOME}/.local/share/lutris/runners/wine/*/bin/wineserver flags=(attach_disconnected) {
  include <abstractions/wine-preloader>
  include <abstractions/wine-exec-px>

  owner @{wine_base_dir}/bin/wineserver       rm,

  owner /tmp/.wine-*/ rw,
  owner /tmp/.wine-*/server-*/ rw,
  owner /tmp/.wine-*/server-*/lock     rwlk,
  owner /tmp/.wine-*/server-*/socket   rw,

  owner @{games_dir}/*/anonmap* rm,
}

profile wine-lutris-wine64 @{HOME}/.local/share/lutris/runners/wine/*/bin/wine64 flags=(attach_disconnected) {
  include <abstractions/wine-lutris>
  include <abstractions/wine-gameenvs>
  include <abstractions/wine-exec-px>

  owner @{wine_base_dir}/bin/wine64           rm,
}

profile wine-lutris-preloader64 @{HOME}/.local/share/lutris/runners/wine/*/bin/wine64-preloader flags=(attach_disconnected) {
  include <abstractions/wine-preloader>
  include <abstractions/wine-exec-64bit>

  owner @{wine_base_dir}/bin/wine64-preloader rm,
}

profile wine-lutris-wine32 @{HOME}/.local/share/lutris/runners/wine/*/bin/wine flags=(attach_disconnected) {
  include <abstractions/wine-lutris>
  include <abstractions/wine-gameenvs>
  include <abstractions/wine-exec-px>

  owner @{wine_base_dir}/bin/wine             rm,
}

profile wine-lutris-preloader32 @{HOME}/.local/share/lutris/runners/wine/*/bin/wine-preloader flags=(attach_disconnected) {
  include <abstractions/wine-preloader>
  include <abstractions/wine-exec-32bit>

  owner @{wine_base_dir}/bin/wine-preloader   rm,
}

profile wine-lutris-ntlm-auth flags=(attach_disconnected) {
  include <abstractions/base>

  /usr/bin/ntlm_auth rm,
  /etc/samba/smb.conf r,

  signal (receive) peer=wine-lutris-*,
}

profile wine-lutris-chmod {
  include <abstractions/base>

  /usr/bin/chmod rm,

  signal (receive) peer=wine-lutris-*,
}
0707010000006C000081A400000000000000000000000167543FE600000C73000000000000000000000000000000000000004D00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/xdg-tools-chromiumabi <abi/4.0>,

include <tunables/global>

@{XDG_SETTINGS_SIMPLE_BINARIES} = basename cut readlink sed which realpath uname
@{XDG_MIME_SIMPLE_BINARIES} = @{XDG_SETTINGS_SIMPLE_BINARIES} head tr

profile chromium-xdg-settings {
  include <abstractions/base>
  include <abstractions/consoles>
  include <abstractions/vivaldi-ignore-media-codecs>

  /usr/bin/xdg-settings r,

  /{usr/,}bin/bash rmPx -> chromium-xdg-bash,

  /usr/bin/kreadconfig5   Px ->  chromium-xdg-kreadconfig5,

  /usr/bin/xdg-mime Px -> chromium-xdg-mime,

  /usr/bin/grep     Px -> chromium-xdg-grep,

  /usr/bin/dbus-send Px -> chromium-xdg-dbus-send,

  /usr/bin/@{XDG_SETTINGS_SIMPLE_BINARIES} Px -> chromium-xdg-simple,

  owner @{HOME}/.local/share/applications/ r,
  owner @{HOME}/.local/share/applications/*/ r,
  /usr/share/applications/ r,
  /usr/share/applications/*/ r,

  /var/lib/flatpak/exports/share/applications/ r,
}

profile chromium-xdg-bash {
  include <abstractions/base>
  include <abstractions/consoles>
  /{usr/,}bin/bash rm,
}

profile chromium-xdg-mime {
  include <abstractions/base>
  include <abstractions/consoles>
  include <abstractions/vivaldi-ignore-media-codecs>

  /usr/bin/xdg-mime r,

  /{usr/,}bin/bash rmPx -> chromium-xdg-bash,

  /usr/bin/ktraderclient5 Px ->  chromium-xdg-ktraderclient5,
  /usr/bin/kreadconfig5   Px ->  chromium-xdg-kreadconfig5,

  /usr/bin/grep     Px -> chromium-xdg-grep,
  /usr/bin/gawk     Px -> chromium-xdg-gawk,

  /usr/bin/dbus-send Px -> chromium-xdg-dbus-send,

  /usr/bin/@{XDG_MIME_SIMPLE_BINARIES} Px -> chromium-xdg-simple,

  owner @{HOME}/.local/share/applications/ r,
  owner @{HOME}/.local/share/applications/*/ r,
  /usr/share/applications/ r,
  /usr/share/applications/**/ r,

  /var/lib/flatpak/exports/share/applications/ r,
}

profile chromium-xdg-grep {
  include <abstractions/base>
  /usr/bin/grep rm,

  /proc/version r,
  owner @{HOME}/.local/share/applications/  r,
  owner @{HOME}/.local/share/applications/** r,
  /usr/share/applications/** r,
  /var/lib/flatpak/exports/share/applications/mimeinfo.cache r,
}

profile chromium-xdg-gawk {
  include <abstractions/base>
  /usr/bin/gawk rm,

  owner @{HOME}/.config/mimeapps.list r,
  owner @{HOME}/.local/share/applications/mimeapps.list r,

  /var/cache/gio-2.0/gnome-mimeapps.list r,

}
profile chromium-xdg-ktraderclient5 {
  include <abstractions/base>
  include <abstractions/kde>
  /usr/bin/ktraderclient5 rm,

  /usr/share/icu/*/*.dat r,

  /etc/xdg/menus/ r,
  /etc/xdg/menus/applications-merged/ r,
  owner @{HOME}/.config/menus/ r,
  owner @{HOME}/.config/menus/applications-merged/ r,

  owner @{HOME}/.cache/ksycoca5* r,

  /usr/share/kservices5/ r,
  /usr/share/kservices5/** r,
  /usr/share/mime/ r,
}

profile chromium-xdg-kreadconfig5 {
  include <abstractions/base>
  include <abstractions/kde>
  /usr/bin/kreadconfig5 rm,

  /usr/share/icu/*/*.dat r,
}

profile chromium-xdg-desktop-menu {
  include <abstractions/base>

  /usr/bin/xdg-desktop-menu rm,
}

profile chromium-xdg-simple {
  include <abstractions/base>

  /usr/bin/@{XDG_MIME_SIMPLE_BINARIES} rm,
}

profile chromium-xdg-dbus-send {
  include <abstractions/base>

  /usr/bin/dbus-send rm,
}
0707010000006D000081A400000000000000000000000167543FE60000094C000000000000000000000000000000000000003E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/apparmor.d/zedabi <abi/4.0>,

include <tunables/global>

profile zed/bin /usr/bin/zed {
  include <abstractions/zed>

  /usr/bin/zed rm,

  /usr/libexec/zed-editor Px,

  include if exists <local/zed>
}
profile zed/editor /usr/libexec/zed-editor {
  include <abstractions/zed>
  include <abstractions/vulkan>
  include <abstractions/X>
  include <abstractions/fonts>
  include <abstractions/nvidia>
  include <abstractions/mesa>
  include <abstractions/dri-enumerate>
  include <abstractions/freedesktop.org>
  include <abstractions/ssl_certs>

  /usr/libexec/zed-editor rm,

  owner @{HOME}/.gitconfig r,

  /etc/gitconfig r,

  /proc/uptime r,
  owner /proc/@{pid}/{cgroup,mountinfo,stat,statm} r,
  /sys/fs/cgroup/user.slice/cpu.max r,
  /sys/devices/system/cpu/cpufreq/policy*/scaling_cur_freq r,

  signal (send)    peer=zed/*,

  /etc/passwd r,
  /{usr/,}etc/nsswitch.conf r,
  /{usr/,}etc/resolv.conf r,
  /{usr/,}etc/host.conf r,
  /{usr/,}etc/gai.conf r,
  /etc/hosts r,

  network inet,
  network inet6,
  network netlink,

  deny /{usr/,}bin/zsh x, #px -> zed/shells,

  /usr/lib{,exec}/git/git Ux,
  /usr/lib{,exec}/git/git-write-tree Ux,

  /proc/ r,
  /proc/@{pid}/task/ r,

  /usr/bin/node px -> zed/node_alternative,
  /usr/bin/npm  px -> zed/node_alternative,
  include if exists <local/zed-editor>
}

profile zed/shells {
  include <abstractions/base>
  include <abstractions/bash>

  /{usr/,}bin/zsh rm,

  /etc/zprofile r,
  /etc/zshenv r,
  /etc/zshrc r,

  owner @{HOME}/.zshrc r,

  /proc/@{pid}/loginuid r,

  /{usr/,}etc/nsswitch.conf r,
  /etc/passwd r,
}

profile zed/node_alternative flags=(attach_disconnected) {
  include <abstractions/zed>
  include <abstractions/mesa>

  signal receive peer=zed/editor,

  /usr/bin/node rm,
  /usr/bin/npm rm,

  /usr/bin/node[0-9][0-9] px -> zed/node,

  /usr/lib{,64}/node_modules/npm[0-9][0-9]/bin/npm-cli.js px -> zed/npm,

  /usr/share/libalternatives/ r,
  /usr/share/libalternatives/node/ r,
  /usr/share/libalternatives/node/*.conf r,
  /usr/share/libalternatives/npm/ r,
  /usr/share/libalternatives/npm/*.conf r,
}

profile zed/node flags=(attach_disconnected) {
  include <abstractions/zed-node>

  /usr/bin/node[0-9][0-9] rm,
}

profile zed/npm flags=(attach_disconnected) {
  include <abstractions/zed-node>

  /usr/lib{,64}/node_modules/npm[0-9][0-9]/bin/npm-cli.js r,
  /usr/bin/node[0-9][0-9] rmpx -> zed/node,
}0707010000006E000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000003700000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd0707010000006F000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/discourse-puma.service.d07070100000070000081A400000000000000000000000167543FE60000002F000000000000000000000000000000000000005E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/discourse-puma.service.d/override.conf[Service]
AppArmorProfile=/discourse/appserver
07070100000071000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000005300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/discourse-sidekiq.service.d07070100000072000081A400000000000000000000000167543FE60000002D000000000000000000000000000000000000006100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/discourse-sidekiq.service.d/override.conf[Service]
AppArmorProfile=/discourse/sidekiq
07070100000073000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/gitlab-ce-puma.service.d07070100000074000081A400000000000000000000000167543FE60000002D000000000000000000000000000000000000005E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/gitlab-ce-puma.service.d/override.conf[Service]
AppArmorProfile=/gitlab//appserver
07070100000075000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000005300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/gitlab-ce-sidekiq.service.d07070100000076000081A400000000000000000000000167543FE60000002B000000000000000000000000000000000000006100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/gitlab-ce-sidekiq.service.d/override.conf[Service]
AppArmorProfile=/gitlab//sidekiq
07070100000077000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000005300000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/gitlab-ce-unicorn.service.d07070100000078000081A400000000000000000000000167543FE60000002D000000000000000000000000000000000000006100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/gitlab-ce-unicorn.service.d/override.conf[Service]
AppArmorProfile=/gitlab//appserver
07070100000079000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000005000000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/matrix-synapse.service.d0707010000007A000081A400000000000000000000000167543FE60000002B000000000000000000000000000000000000005E00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/matrix-synapse.service.d/apparmor.conf[Service]
AppArmorProfile=/matrix/synapse

0707010000007B000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000005100000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/redis-sentinel@.service.d0707010000007C000081A400000000000000000000000167543FE60000002C000000000000000000000000000000000000005F00000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/redis-sentinel@.service.d/apparmor.conf[Service]
AppArmorProfile=redis-sentinel.%i
0707010000007D000041ED00000000000000000000000267543FE600000000000000000000000000000000000000000000004800000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/redis@.service.d0707010000007E000081A400000000000000000000000167543FE600000023000000000000000000000000000000000000005600000000apparmor-profiles-nordisch-1.3.0+git33.e7b8bb1/systemd/redis@.service.d/apparmor.conf[Service]
AppArmorProfile=redis.%i
07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!378 blocks
openSUSE Build Service is sponsored by