Merge lp:~sidnei/juju-core/lxc-config-perms into lp:~go-bot/juju-core/trunk
Proposed by
Sidnei da Silva
Status: | Merged |
---|---|
Approved by: | Sidnei da Silva |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1605 |
Proposed branch: | lp:~sidnei/juju-core/lxc-config-perms |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
25 lines (+2/-2) 2 files modified
container/lxc/lxc.go (+1/-1) container/lxc/lxc_test.go (+1/-1) |
To merge this branch: | bzr merge lp:~sidnei/juju-core/lxc-config-perms |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+178672@code.launchpad.net |
Commit message
Fix default perms on apt config
Installing the config with mode 0600 makes it impossible for a non-root user
to run any apt command.
https:/
R=axwalk, thumper
Description of the change
Fix default perms on apt config
Installing the config with mode 0600 makes it impossible for a non-root user
to run any apt command.
To post a comment you must log in.
Reviewers: mp+178672_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix default perms on apt config
Installing the config with mode 0600 makes it impossible for a non-root
user
to run any apt command.
https:/ /code.launchpad .net/~sidnei/ juju-core/ lxc-config- perms/+ merge/178672
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/12510043/
Affected files: lxc/lxc. go lxc/lxc_ test.go
A [revision details]
M container/
M container/
Index: [revision details] 20130806053414- fbcxuyvncbfz3m8 n
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: container/ lxc/lxc. go lxc/lxc. go' lxc/lxc. go 2013-08-05 17:45:38 +0000 lxc/lxc. go 2013-08-06 07:40:45 +0000 g.AddFile( /etc/apt/ apt.conf. d/99proxy- extra", Join(proxyLines , "\n"),
=== modified file 'container/
--- container/
+++ container/
@@ -365,7 +365,7 @@
cloudConfi
"
strings.
- 0600)
+ 0644)
}
}
Index: container/ lxc/lxc_ test.go lxc/lxc_ test.go' lxc/lxc_ test.go 2013-08-05 17:38:28 +0000 lxc/lxc_ test.go 2013-08-06 07:40:45 +0000
=== modified file 'container/
--- container/
+++ container/
@@ -123,7 +123,7 @@
c.Assert( scripts[ len(scripts) -4:], gc.DeepEquals, []string{ 1-lxc-0" , apt.conf. d/99proxy- extra'" , apt.conf. d/99proxy- extra'" , Sprintf( "echo '%s' > '/etc/apt/ apt.conf. d/99proxy- extra'" ,
"start jujud-machine-
- "install -m 600 /dev/null '/etc/apt/
+ "install -m 644 /dev/null '/etc/apt/
fmt.
configProxyExtra),
"ifconfig",
})