Re: Something keeps creating Events.json in my home directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 20, 2022 at 7:12 AM Matti Pulkkinen <mkjpul@xxxxxx> wrote:
> Something keeps creating a file, Events.json, in my home directory. It
> only ever contains an empty JSON array, but if I remove the file,
> something just creates it again. Has anyone seen this before? What
> program could be behind this? This only started happening after I
> installed Fedora 37 Workstation, and never happened to me before on
> Fedora 36.

If you can't figure this out otherwise, here's a heavyweight solution.
Install the systemtap package.  Run "sudo stap-prep".  Put this in a
file named, say, events.stp, and replace "<username>" with your actual
username:

```
probe vfs.open
{
  if (pathname == "/home/<username>/events.json")
    printf("events.json created by %s (pid %d, uid %d)\n", execname(),
pid(), uid())
}
```

That's crude, because it doesn't check that the file is opened in
create mode, but it will do for your case.  Delete events.json, then
run "sudo stap events.stp".  Come back later and see if it has printed
anything.  If I run "touch events.json" in another shell, for example,
it prints:

events.json created by touch (pid 39957, uid 1000)

Press Ctrl-C to exit from stap when you are done.
-- 
Jerry James
http://www.jamezone.org/
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux