Merge lp:~allenap/maas/atomic-delete-and-write-scripts into lp:~maas-committers/maas/trunk
Proposed by
Gavin Panella
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Gavin Panella | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 5849 | ||||
Proposed branch: | lp:~allenap/maas/atomic-delete-and-write-scripts | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
311 lines (+240/-1) 4 files modified
scripts/maas-delete-file (+47/-0) scripts/maas-write-file (+64/-0) setup.py (+3/-1) src/provisioningserver/utils/tests/test_fs.py (+126/-0) |
||||
To merge this branch: | bzr merge lp:~allenap/maas/atomic-delete-and-write-scripts | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Blake Rouse (community) | Approve | ||
Review via email: mp+320654@code.launchpad.net |
Commit message
New scripts maas-delete-file and maas-write-file which will be installed to /usr/lib/maas.
Description of the change
MAAS's access to writing and deleting files is <cough> not great. These scripts are an improvement in that they enforce access controls that are not possible to express using sudo.
These scripts are not yet actually used — that will come in a later branch — but landing them like this allows me to then get the packaging right before switching over.
To post a comment you must log in.
Looks good. Getting the whitelist wrong will break MAAS, so I hope your sure that all files are in the whitelist.