Binary with an underscore fails to produce an apparmor profile
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Snappy | Status tracked in Trunk | |||||
15.04 |
Won't Fix
|
Undecided
|
Unassigned | |||
Trunk |
Invalid
|
Medium
|
Unassigned |
Bug Description
If you create a binary with an underscore in its name, then snappy build/install the snap. Everything works just fine. Execpt it doesnt build its apparmor profile. A binary with an underscore in it causes aa-clickhook to fail. As it splits the binary on '_' and expects 3 split words. Any underscores will cause that assumption to fail.
Though it does say in the snappy docs thats a '_' is an unsupported character, it should still give an error while building vs producing a valid snap installing 100% and then just not working.
Example binary in package.yaml that will cause the error in a profile not being produced:
binaries:
- name: bin/document_viewer
description: "ubuntu core app document viewer"
start: ./bin/document_
security-
description: | updated |
Changed in snappy: | |
status: | New → Confirmed |
importance: | Undecided → High |
Good catch.
Please can we make sure we use the same code for validation of names at
build and install time? Or at least an common test suite?
Thanks,
Mark