[SRU] killfilter should handle updated/deleted executables
Bug #967931 reported by
Dan Prince
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| OpenStack Compute (nova) |
Fix Released
|
Medium
|
Dan Prince | ||
| Essex |
Fix Released
|
Undecided
|
Unassigned | ||
| nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
| Precise |
Fix Released
|
Undecided
|
Chuck Short | ||
Bug Description
The KillFilter class used by rootwrapper currently relies on the /proc/PID/exe symlink to determine the command used to execute a process. This works fine until an executable is updated/deleted while a process is running.
The fix seems to be to strip ' (deleted)' off of the readlink command.
Related branches
lp://qastaging/~openstack-ubuntu-testing/nova/precise-essex-proposed
- Chuck Short: Pending requested
-
Diff: 56 lines (+14/-4)3 files modifieddebian/changelog (+8/-0)
debian/control (+6/-3)
debian/nova-console.install (+0/-1)
| Changed in nova: | |
| status: | Fix Committed → In Progress |
| Changed in nova: | |
| milestone: | none → folsom-1 |
| Changed in nova: | |
| status: | Fix Committed → Fix Released |
| Changed in nova (Ubuntu): | |
| status: | New → In Progress |
| Changed in nova (Ubuntu Precise): | |
| status: | New → In Progress |
| summary: |
- killfilter should handle updated/deleted executables + [SRU] killfilter should handle updated/deleted executables |
| Changed in nova (Ubuntu Precise): | |
| assignee: | nobody → Chuck Short (zulcss) |
| milestone: | none → ubuntu-12.04.1 |
| tags: |
added: verification-done removed: verification-needed |
| Changed in nova (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in nova: | |
| milestone: | folsom-1 → 2012.2 |
To post a comment you must log in.

Here is an example:
[root@nova1 nova]# ll /proc/6227/exe
lrwxrwxrwx 1 root root 0 Mar 28 19:34 /proc/6227/exe -> /usr/sbin/dnsmasq (deleted)
For reference I *think* this is the relevant filesystem code that causes the ' (deleted)' to appear in proc:
http:// git.kernel. org/?p= linux/kernel/ git/stable/ linux-stable. git;a=blob; f=fs/dcache. c;h=e441941c834 d26a176db4f43aa a475747b4d2f2d; hb=HEAD# l2605