Re: [apparmor] AppArmor dependency on python

2017-11-27 Thread Tyler Hicks
On 11/20/2017 05:29 AM, Viacheslav Salnikov wrote:
> Hi Tyler and John,
> 
> /The majority of the profile manipulation tools are now written in python.
> /
> Could you please provide more detailed information about these tools?
> Like a list, at least.

The following tools will be available to you without Python:
- apparmor_parser which allows you to compile and load AppArmor profiles
- aa-exec which allows you to confine processes with arbitrary AppArmor
profiles, namespaces, etc.
- aa-enabled which allows you to verify that AppArmor is enabled

The following tools will not be available to you since they depend on
Python (or Perl):
- aa-audit
- aa-autodep
- aa-cleanprof
- aa-complain
- aa-decode
- aa-disable
- aa-enforce
- aa-genprof
- aa-logprof
- aa-mergeprof
- aa-status
- aa-unconfined
- aa-update-browser

They're optional and, with the exception of aa-status, not installed by
default in Ubuntu. Please see their man pages for details.

Tyler

> 
> /$ (cd libraries/libapparmor && ./autogen.sh && ./configure \
>    && make && make check) && \
>   (cd binutils && make && make check) && \
>   (cd parser && make)
> /
> Thank you, I will try.
> 
> //
> //
> 
> 2017-11-17 21:06 GMT+02:00 Tyler Hicks <tyhi...@canonical.com
> <mailto:tyhi...@canonical.com>>:
> 
> On 11/17/2017 12:57 PM, John Johansen wrote:
> > On 11/17/2017 01:33 AM, Viacheslav Salnikov wrote:
> >> Hi guys,
> >>
> >> I have a question about apparmor and its dependency from python.
> >> I'm using it with Yocto, apparmor version is 2.11.0.
> >>
> >> Except*aa-easyprof*, does apparmor or its libraries and utilities use 
> python for something? I am talking not only about execution but also about 
> compilation, installing etc.
> >>
> > the very base of apparmor, parser, libraries, some basic tools 
> aa-enabled, aa-exec do not use python, this allows for minimal installs with 
> very few dependencies.
> 
> You should be able to build the library, parser, and binutils without
> Python. Your build commands would look something like:
> 
> $ (cd libraries/libapparmor && ./autogen.sh && ./configure \
>    && make && make check) && \
>   (cd binutils && make && make check) && \
>   (cd parser && make)
> 
> You won't be able to run `make check` in parser/ as some of the tests
> depend on Python (and some Perl).
> 
> Tyler
> 
> 




signature.asc
Description: OpenPGP digital signature
-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor


Re: [apparmor] AppArmor dependency on python

2017-11-20 Thread Viacheslav Salnikov
Hi Tyler and John,


*The majority of the profile manipulation tools are now written in python.*
Could you please provide more detailed information about these tools? Like
a list, at least.





*$ (cd libraries/libapparmor && ./autogen.sh && ./configure \&& make &&
make check) && \   (cd binutils && make && make check) && \   (cd parser &&
make)*
Thank you, I will try.


2017-11-17 21:06 GMT+02:00 Tyler Hicks <tyhi...@canonical.com>:

> On 11/17/2017 12:57 PM, John Johansen wrote:
> > On 11/17/2017 01:33 AM, Viacheslav Salnikov wrote:
> >> Hi guys,
> >>
> >> I have a question about apparmor and its dependency from python.
> >> I'm using it with Yocto, apparmor version is 2.11.0.
> >>
> >> Except*aa-easyprof*, does apparmor or its libraries and utilities use
> python for something? I am talking not only about execution but also about
> compilation, installing etc.
> >>
> > the very base of apparmor, parser, libraries, some basic tools
> aa-enabled, aa-exec do not use python, this allows for minimal installs
> with very few dependencies.
>
> You should be able to build the library, parser, and binutils without
> Python. Your build commands would look something like:
>
> $ (cd libraries/libapparmor && ./autogen.sh && ./configure \
>&& make && make check) && \
>   (cd binutils && make && make check) && \
>   (cd parser && make)
>
> You won't be able to run `make check` in parser/ as some of the tests
> depend on Python (and some Perl).
>
> Tyler
>
>
-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor


Re: [apparmor] AppArmor dependency on python

2017-11-17 Thread Tyler Hicks
On 11/17/2017 12:57 PM, John Johansen wrote:
> On 11/17/2017 01:33 AM, Viacheslav Salnikov wrote:
>> Hi guys,
>>
>> I have a question about apparmor and its dependency from python.
>> I'm using it with Yocto, apparmor version is 2.11.0.
>>
>> Except*aa-easyprof*, does apparmor or its libraries and utilities use python 
>> for something? I am talking not only about execution but also about 
>> compilation, installing etc.
>>
> the very base of apparmor, parser, libraries, some basic tools aa-enabled, 
> aa-exec do not use python, this allows for minimal installs with very few 
> dependencies.

You should be able to build the library, parser, and binutils without
Python. Your build commands would look something like:

$ (cd libraries/libapparmor && ./autogen.sh && ./configure \
   && make && make check) && \
  (cd binutils && make && make check) && \
  (cd parser && make)

You won't be able to run `make check` in parser/ as some of the tests
depend on Python (and some Perl).

Tyler



signature.asc
Description: OpenPGP digital signature
-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor


Re: [apparmor] AppArmor dependency on python

2017-11-17 Thread John Johansen
On 11/17/2017 01:33 AM, Viacheslav Salnikov wrote:
> Hi guys,
> 
> I have a question about apparmor and its dependency from python.
> I'm using it with Yocto, apparmor version is 2.11.0.
> 
> Except*aa-easyprof*, does apparmor or its libraries and utilities use python 
> for something? I am talking not only about execution but also about 
> compilation, installing etc.
> 
the very base of apparmor, parser, libraries, some basic tools aa-enabled, 
aa-exec do not use python, this allows for minimal installs with very few 
dependencies.

the library presents a set of C interfaces but can be built with swig providing 
interfaces for other languages, python, perl, ...

The majority of the profile manipulation tools are now written in python.

There are a few tools that haven't been rewritten and that are still using perl 
(aa-notify)

and a couple small utilities are in bash atm (aa-decode)

-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor


[apparmor] AppArmor dependency on python

2017-11-17 Thread Viacheslav Salnikov
Hi guys,

I have a question about apparmor and its dependency from python.
I'm using it with Yocto, apparmor version is 2.11.0.

Except* aa-easyprof*, does apparmor or its libraries and utilities use
python for something? I am talking not only about execution but also about
compilation, installing etc.

Thanks!
-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor