All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Whitelist sftp
@ 2017-03-11  5:14 Peter Kjellerstedt
  2017-03-11  5:14 ` [PATCH 1/1] bitbake.conf: Add 'sftp' to HOSTTOOLS_NONFATAL Peter Kjellerstedt
  2017-03-11 11:24 ` [PATCH 0/1] Whitelist sftp Richard Purdie
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Kjellerstedt @ 2017-03-11  5:14 UTC (permalink / raw)
  To: openembedded-core

I have been trying out the whitelisting of tools in $PATH, and it
seems to work very well. However, one thing that I realized is that
the tools used by the various fetchers need to be whitelisted. This
patch adds sftp to HOSTTOOLS_NONFATAL as that is the only fetcher we
use appart from git and wget, but I expect other tools such as cvs,
svn, hg, etc need to be added as well.

Feel free to squash this commit with the "base/bitbake.conf: Filter
contents of PATH to only allow whitelisted tools" commit.

//Peter

The following changes since commit 1cf50b756c589d8bf8f1f32f2062b69fb769242d:

  base/bitbake.conf: Filter contents of PATH to only allow whitelisted tools (2017-03-10 18:07:27 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib pkj/whitelist_sftp
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/whitelist_sftp

Peter Kjellerstedt (1):
  bitbake.conf: Add 'sftp' to HOSTTOOLS_NONFATAL

 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.12.0



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

* [PATCH 1/1] bitbake.conf: Add 'sftp' to HOSTTOOLS_NONFATAL
  2017-03-11  5:14 [PATCH 0/1] Whitelist sftp Peter Kjellerstedt
@ 2017-03-11  5:14 ` Peter Kjellerstedt
  2017-03-11 11:24 ` [PATCH 0/1] Whitelist sftp Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Kjellerstedt @ 2017-03-11  5:14 UTC (permalink / raw)
  To: openembedded-core

This is necessary to be able to use the sftp fetcher.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 5699099b41..4cf1f5d6ff 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -469,7 +469,7 @@ HOSTTOOLS += " \
 HOSTTOOLS += "ps stty ip ssh scp ping vi"
 
 # Link to these if present
-HOSTTOOLS_NONFATAL += "ccache pip3 ld.bfd ld.gold gcc-ar gpg"
+HOSTTOOLS_NONFATAL += "ccache pip3 ld.bfd ld.gold gcc-ar gpg sftp"
 
 CCACHE ??= ""
 # Disable ccache explicitly if CCACHE is null since gcc may be a symlink
-- 
2.12.0



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

* Re: [PATCH 0/1] Whitelist sftp
  2017-03-11  5:14 [PATCH 0/1] Whitelist sftp Peter Kjellerstedt
  2017-03-11  5:14 ` [PATCH 1/1] bitbake.conf: Add 'sftp' to HOSTTOOLS_NONFATAL Peter Kjellerstedt
@ 2017-03-11 11:24 ` Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2017-03-11 11:24 UTC (permalink / raw)
  To: Peter Kjellerstedt, openembedded-core

On Sat, 2017-03-11 at 06:14 +0100, Peter Kjellerstedt wrote:
> I have been trying out the whitelisting of tools in $PATH, and it
> seems to work very well. However, one thing that I realized is that
> the tools used by the various fetchers need to be whitelisted. This
> patch adds sftp to HOSTTOOLS_NONFATAL as that is the only fetcher we
> use appart from git and wget, but I expect other tools such as cvs,
> svn, hg, etc need to be added as well.

For some, like subversion we actually build subversion-native so they
shouldn't be listed by default.

> Feel free to squash this commit with the "base/bitbake.conf: Filter
> contents of PATH to only allow whitelisted tools" commit.

I squashed this in along with some other minor tweaks thanks.

Richard


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

end of thread, other threads:[~2017-03-11 11:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11  5:14 [PATCH 0/1] Whitelist sftp Peter Kjellerstedt
2017-03-11  5:14 ` [PATCH 1/1] bitbake.conf: Add 'sftp' to HOSTTOOLS_NONFATAL Peter Kjellerstedt
2017-03-11 11:24 ` [PATCH 0/1] Whitelist sftp Richard Purdie

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.