On 2 July 2016 at 11:37, Kumar, Shrawan wrote:
> Post-installation scripts run immediately after installing a package on
> the target *or during image creation when a package is included in an
> image*.
>
> Does it not mean that we can set the file attributes(setcap) during
> image creation ?
>
@yoctoproject.org
Subject: Re: [yocto] setcap using recipe
On 2 July 2016 at 10:22, Kumar, Shrawan
mailto:shrawan.ku...@harman.com>> wrote:
Can someone review the attached recipe and help solve the problem statement ?
As has been said, you need to ensure the postinst is delayed so it runs
On 2 July 2016 at 10:22, Kumar, Shrawan wrote:
> Can someone review the attached recipe and help solve the problem
> statement ?
>
As has been said, you need to ensure the postinst is delayed so it runs on
the target and not on the build host.
http://www.yoctoproject.org/docs/2.1/dev-manual/de
ubject: Re: [yocto] setcap using recipe
Hmmm I see,
Well, I didn't note that. And yeah, that command should be ran at first boot,
(that feature saved my life a bunch of times :) )
Regards,
2016-07-01 11:03 GMT-03:00 Mathieu Allard :
> Hello,
>
> I think that the main issue here
On 1 July 2016 at 15:03, Mathieu Allard wrote:
> I think that the main issue here is that the pkg_postinst function runs
> its action at the rootfs creation time, and not on the target as advised by
> Ross.
>
Yes, as I said in the first suggestion you'll need to ensure this runs on
the target (c
>
>
> - Original Message -
> From: "Daniel."
> To: "Kumar, Shrawan"
> Cc: yocto@yoctoproject.org
> Sent: Friday, July 1, 2016 3:54:15 PM
> Subject: Re: [yocto] setcap using recipe
>
> Does your target filesystem support it? ubifs doesn
after the first boot.
Regards,
Mathieu
- Original Message -
From: "Daniel."
To: "Kumar, Shrawan"
Cc: yocto@yoctoproject.org
Sent: Friday, July 1, 2016 3:54:15 PM
Subject: Re: [yocto] setcap using recipe
Does your target filesystem support it? ubifs doesn't :(
riday, June 24, 2016 6:40 PM
>
>
> To: Kumar, Shrawan
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] setcap using recipe
>
>
>
> Looks like using setcap directly is broken currently, there are two
> workarounds:
>
>
>
> 1) use a postinst to invoke setcap on the
[mailto:ross.bur...@intel.com]
Sent: Friday, June 24, 2016 6:40 PM
To: Kumar, Shrawan
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] setcap using recipe
Looks like using setcap directly is broken currently, there are two workarounds:
1) use a postinst to invoke setcap on the target instead
2) test the
On 29 June 2016 at 05:10, Kumar, Shrawan wrote:
> Could your update on my issues ?
>
>
The patch is probably against a newer version. If you're unable to switch
to the latest version of pseudo to debug this then you can run setcap in a
postinst.
Ross
--
___
Hello Ross,
Could your update on my issues ?
Regards
Shrawan
From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On
Behalf Of Kumar, Shrawan
Sent: Monday, June 27, 2016 12:04 PM
To: Burton, Ross
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] setcap using recipe
, 2016 6:40 PM
To: Kumar, Shrawan
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] setcap using recipe
Looks like using setcap directly is broken currently, there are two workarounds:
1) use a postinst to invoke setcap on the target instead
2) test the patch for pseudo that is on this list ([PATCH
ndir}
>
> install -d ${D}/lib/systemd/system
>
> install -m 0755 hello.service ${D}/lib/systemd/system/
>
> setcap cap_net_raw+ep ${D}${bindir}/helloworld
>
>
>
> }
>
>
>
> Thanks and Regards
>
> Sh
I am using Yocto 2.0.2
Thanks and Regards
Shrawan
From: Burton, Ross [mailto:ross.bur...@intel.com]
Sent: Friday, June 24, 2016 5:56 PM
To: Kumar, Shrawan
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] setcap using recipe
What version of OE/Yocto are you using? Old versions of pseudo didn
${D}/lib/systemd/system/
>
> setcap cap_net_raw+ep ${D}${bindir}/helloworld
>
>
>
> }
>
>
>
> Thanks and Regards
>
> Shrawan
>
>
>
> *From:* Burton, Ross [mailto:ross.bur...@intel.com]
> *Sent:* Friday, June 24, 2016 5:09 PM
> *To:*
hello.service ${D}/lib/systemd/system/
setcap cap_net_raw+ep ${D}${bindir}/helloworld
}
Thanks and Regards
Shrawan
From: Burton, Ross [mailto:ross.bur...@intel.com]
Sent: Friday, June 24, 2016 5:09 PM
To: Kumar, Shrawan
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] setcap using recipe
Hi,
On 24 June 2016 at 11:41, Kumar, Shrawan wrote:
> Is there a way to add a capability to a binary (cap_net_raw+ep),into a
> recipe?
>
>
>
> Example :
>
> do_install() {
>
>install -d ${D}${bindir}
>
>install -m 0755 helloworld ${D}${bindir}
>
>install -d $
Hello All,
Is there a way to add a capability to a binary (cap_net_raw+ep),into a recipe?
Example :
do_install() {
install -d ${D}${bindir}
install -m 0755 helloworld ${D}${bindir}
install -d ${D}/lib/systemd/system
install -m 0755 hello.servic
18 matches
Mail list logo