All of lore.kernel.org
 help / color / mirror / Atom feed
* setcap using recipe
@ 2016-06-24 10:41 Kumar, Shrawan
  2016-06-24 11:39 ` Burton, Ross
  0 siblings, 1 reply; 18+ messages in thread
From: Kumar, Shrawan @ 2016-06-24 10:41 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

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.service ${D}/lib/systemd/system/

           setcap cap_net_raw+ep  ${D}${bindir}/helloworld

}



If yes is this correct approach to achieve the same from  package recipe itself ?





Thanks and Regards

Shrawan


[-- Attachment #2: Type: text/html, Size: 3587 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-07-02 14:22 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-24 10:41 setcap using recipe Kumar, Shrawan
2016-06-24 11:39 ` Burton, Ross
2016-06-24 12:23   ` Kumar, Shrawan
2016-06-24 12:25     ` Burton, Ross
2016-06-24 12:31       ` Kumar, Shrawan
2016-06-24 13:10         ` Burton, Ross
2016-06-27  6:33           ` Kumar, Shrawan
2016-06-29  4:10             ` Kumar, Shrawan
2016-06-29  9:05               ` Burton, Ross
2016-07-01 12:53           ` Kumar, Shrawan
2016-07-01 13:54             ` Daniel.
2016-07-01 14:03               ` Mathieu Allard
2016-07-01 14:23                 ` Daniel.
2016-07-02  9:22                   ` Kumar, Shrawan
2016-07-02  9:26                     ` Burton, Ross
2016-07-02 10:37                       ` Kumar, Shrawan
2016-07-02 14:22                         ` Burton, Ross
2016-07-01 15:33                 ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.