only for fexecve?
only for fexecve?
Posted Nov 27, 2024 20:17 UTC (Wed) by ebiederm (subscriber, #35028)In reply to: only for fexecve? by shironeko
Parent article: The kernel's command-line commotion
Yes, only for the case where no filename is supplied to execveat.
There are cases like login shells where argv[0] must take a value that is not really appropriate for use as task->comm.
So no. Userspace won't be broken. There are just cases where slowing down user space using open followed by extra followed by execveat will have a different task->comm.
The silliness of using the ascii string representing the file descriptor number is going away, and that is good.