[Bug 1400357] Re: zero file called 0 created in $HOME each time Ubuntu DVD is inserted
zebul666
zebul666 at hotmail.com
Mon Dec 8 16:59:47 UTC 2014
line 20 of /usr/share/upstart/sessions/update-notifier-cds.conf is
if [ $CDTYPE > 0 ]
I don't know much about dash but for bash I would have written
if [ $CDTYPE -gt 0 ]
also in dash man page:
[...]
s1 > s2 True if string s1 comes after s2 based on the ASCII value of their characters.
[...]
n1 -gt n2 True if the integer n1 is algebraically greater than the integer n2.
as CDTYPE is an integer it's the second form.
I tried changing ">" to "-gt" in the file /usr/share/upstart/sessions/update-notifier-cds.conf and
it fixed it ! no zero file anymore !
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1400357
Title:
zero file called 0 created in $HOME each time Ubuntu DVD is inserted
Status in update-notifier package in Ubuntu:
New
Bug description:
I noticed that weird file called 0 (zero), and empty, in my home directory.
I deleted it and it came back !
then i used auditd to find out what process was creating such a file, so I used
auditctl -w /home/zebul666/0 -p wa -k home-zero-file
and to make it permanent I added the line "-w /home/zebul666/0 -p wa
-k home-zero-file" in /etc/audit/rules.d/audit.rules
and wait.
and I had a hit with ausearch -k home-zeo-file showed me
time->Sat Nov 22 23:42:41 2014
type=PROCTITLE msg=audit(1416696161.454:19183): proctitle=2F62696E2F7368002D65002F70726F632F73656C662F66642F39
type=PATH msg=audit(1416696161.454:19183): item=1 name="0" inode=11535138 dev=fc:01 mode=0100664 ouid=1000 ogid=1000 rdev=00:00 nametype=CREATE
type=PATH msg=audit(1416696161.454:19183): item=0 name="/home/zebul666" inode=11534337 dev=fc:01 mode=040700 ouid=1000 ogid=1000 rdev=00:00 nametype=PARENT
type=CWD msg=audit(1416696161.454:19183): cwd="/home/zebul666"
type=SYSCALL msg=audit(1416696161.454:19183): arch=c000003e syscall=2 success=yes exit=3 a0=7f0c68b8ab08 a1=241 a2=1b6 a3=0 items=2 ppid=22150 pid=28635 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="sh" exe="/bin/dash" key="home-zero-file"
the process with pid 28635 was gone but more interestingly I noticed
that the PPID 22150 is the one for upstart !
so it's a script launched by upstart
and I noticed in my /var/log/syslog at the approx. same time
Nov 22 23:42:30 callisto udisksd[3502]: Mounted /dev/sr0 at
/media/zebul666/Ubuntu 14.10 amd64 on behalf of uid 1000
I don't know which script is run by upstart at dvd insertion but there
is a bug in it that creates a empty zero file in home when you insert
a ubuntu DVD
running ubuntu 14.10 amd64
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1400357/+subscriptions
More information about the foundations-bugs
mailing list