Re: sys_open

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

 



Hi Can,

On Fri, Oct 22, 2004 at 03:35:23PM -0700, Can Sar told us:
> I absolutely agree with you that some of these things might cause 
> problems, or security holes. This is, however, for a research project, 
> so it will never find its way into any critical system. But knowing the 
> name or original path of the executable (at exec time) would be great. 
> I've been reading through the sys_exec code, and while it seems like 
> the info is discarded, i feel like there must be some way of getting it 
> that I am missing.

you might want to take a look at how the executable is found for the
/proc/<pid>/exe entry. Look at fs/proc/base.c::proc_exe_link().


hope this helps

Sven

> 
> Greetings,
> Can
> 

-- 
Linux zion 2.6.9-rc1-mm4 #1 Tue Sep 7 12:57:19 CEST 2004 i686 athlon i386 GNU/Linux
 03:07:05 up 27 days,  2:21,  2 users,  load average: 0.31, 0.19, 0.07

Attachment: pgphe1C2Um3gH.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux