Re: [apparmor] Apparmor : Common Query

2022-09-22 Thread Murali Selvaraj
Thanks Seth On Thu, Sep 22, 2022, 8:21 PM Seth Arnold wrote: > On Thu, Sep 22, 2022 at 07:16:32PM -0400, Murali Selvaraj wrote: > > -> How do we approach preparing an Apparmor profile for a shell script as > > the first time I am doing this. > > -> As our embedded device like legacy and many

Re: [apparmor] Apparmor : Common Query

2022-09-22 Thread Seth Arnold
On Thu, Sep 22, 2022 at 07:16:32PM -0400, Murali Selvaraj wrote: > -> How do we approach preparing an Apparmor profile for a shell script as > the first time I am doing this. > -> As our embedded device like legacy and many scripts internally invokes > few other scripts based on the different

Re: [apparmor] Apparmor : Common Query

2022-09-22 Thread Seth Arnold
On Thu, Sep 22, 2022 at 02:48:43PM -0400, Murali Selvaraj wrote: > *foo.sh* > #!/bin/sh > if condition >/bin/sh script_1.sh > fi > /bin/sh script_2.sh > while [ condition ] > do >if [ condition ] > /bin/sh script_3.sh >else > /bin/sh script_4.sh >fi > done > >

[apparmor] Apparmor : Common Query

2022-09-22 Thread Murali Selvaraj
Hi All, Please see below two queries and share your valuable inputs. *Question 1: * I am trying to generate an Apparmor profile similar to the below pseudo script. *foo.sh* #!/bin/sh if condition /bin/sh script_1.sh fi /bin/sh script_2.sh while [ condition ] do if [ condition ]