Sponsored Content
Top Forums Programming Changing fname in /proc filesystem Post 302096731 by wilbur on Friday 17th of November 2006 02:11:55 PM
Old 11-17-2006
Changing fname in /proc filesystem

I wrote a wrapper (call it prog1) around another program (call it prog2) for security purposes. When prog1 launches prog2 it sets the argv[0] value to be "prog1" so that "prog2" does not show up when you use the "ps" command. Howerver, if you use the option "-o fname" with "ps" then the file name for prog2 still shows up (also when running "sdtprocess", this being Solaris). I'd like to stop this from happening, but the file name is apparently being pulled from the /proc file system and I don't think prog1 is going to have permission to change any values in prog2's state. So I have 2 questions:

1) Is it even possible to change the filename values in prog2's /proc entries through any method?

2) Is there any way to do this from within prog1? (I don't have access to prog2's source code or I wouldn't have needed a wrapper to begin with)

Thanks or any help.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

about /proc

hi, we all know /proc is about the information of active process, I have just read an artical which said you can use /proc/cpuinfo, /proc/net./proc/meminfo etc. to know about some hardware information .But I want to know how to use with command line? (1 Reply)
Discussion started by: fuqiang1976
1 Replies

2. Filesystems, Disks and Memory

Changing Filesystem size.

Hi there, can i change the size of filesystem afterwards. i want give some more space to my /export/home and want take some space from /opt. is it possible in solaris ? Any help will be appriciated. Abid (2 Replies)
Discussion started by: abidmalik
2 Replies

3. Shell Programming and Scripting

Changing userID and Changing group and GID

Hello, I want to write a ksh script about changing UID and changing group with GID. There are multiple servers i want to perform that job. linux1 linux2 linux3 linux4 linux5 ...... . . . . . 1.) How can i enter "password" in script rather asking me? I was trying this... ssh... (2 Replies)
Discussion started by: deal732
2 Replies

4. UNIX for Dummies Questions & Answers

_/proc/stat vs /proc/uptime

Hi, I am trying to calculate the CPU Usage by getting the difference between the idle time reported by /proc/stat at 2 different intervals. Now the 4th entry in the first line of /proc/stat will give me the 'idle time'. But I also came across /proc/uptime that gives me 2 entries : 1st one as the... (0 Replies)
Discussion started by: coderd
0 Replies

5. Solaris

Solaris 10 /proc making filesystem full

Hi all, I have a solaris 10 box on which /proc is a part of / The problem is that my / partition is getting full mainly due to /proc getting a lot of files. My question is : Can I delete files/directories in /proc directory. If not what could be the other way round to clean up /proc so... (18 Replies)
Discussion started by: run_time_error
18 Replies

6. Solaris

Filesystem - error when extend the filesystem

Hi all, currently , my root filesystem already reach 90 ++% I already add more cylinder in the root partition as below Part Tag Flag Cylinders Size Blocks 0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300 1 swap wu 1 - ... (11 Replies)
Discussion started by: SmartAntz
11 Replies

7. Linux

Tripwire Nightware on Linux (proc filesystem)

Hello, I am having a nightmare with Tripwire on Linux..... I cannot get it to ignore the /proc filesystem, which I want to completely ignore for now Has anyone here successfully configured Tripwire on Linux and completed ignored the /proc filesystem ? If so, please reply and tell me how... (0 Replies)
Discussion started by: Neo
0 Replies

8. UNIX for Dummies Questions & Answers

hwo to find shared filesystem and local filesystem in AIX

Hi, I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local. Please tell me the commands which I can run... (2 Replies)
Discussion started by: kamranjalal
2 Replies

9. Solaris

Solaris Filesystem vs. Windows FileSystem

Hi guys! Could you tell me what's the difference of filesystem of Solaris to filesystem of Windows? I need to compare both. I have read some over the net but it's so much technical. Could you explain it in a more simpler term? I am new to Solaris. Hope you help me guys. Thanks! (4 Replies)
Discussion started by: arah
4 Replies

10. AIX

Mount Filesystem in AIX Unable to read /etc/filesystem

Dear all, We are facing prolem when we are going to mount AIX filesystem, the system returned the following error 0506-307The AFopen call failed : A file or directory in the path name does not exist. But when we ls filesystems in the /etc/ directory it show -rw-r--r-- 0 root ... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies
GOBAN(1)						      General Commands Manual							  GOBAN(1)

NAME
goban - Goban screensaver SYNOPSIS
goban [options] DESCRIPTION
This manual page documents briefly the goban command. goban is a screensaver program that replays historical games of go (aka wei-chi and baduk) on the screen. OPTIONS
-version, --version Print version information -[no]stealth Stealth mode -display Display to use -[no]color Use color if possible -[no]hiContrast Use high-contrast graphics instead of rendered -adfile Set resource file name -name Name used to look up X resources -fontHeight Size (in pixels) of font (default = 12) -window-id X window id to draw in -root Draw on the root window -stonetime Milliseconds between stones in screensaver (default = 2000) -gametime Milliseconds between games in screensaver (default = 10000) -acceleration Rate of acceleration of stonetime 0=slow 100=fast (default = 50) -game-dir Directory to find games to play -minstonetime Minimum stonetime (limit on acceleration) in screensaver (default = 100) -arena.games Number of games to play in arena test -arena.prog1 Program 1 for arena testing -arena.prog2 Program 2 for arena testing -arena.size Size to use in arena testing -arena.komi Komi for arena testing -arena.handicap Handicap for arena testing -edit Edit SGF file -nngs Connect to NNGS -igs Connect to IGS -screensaver Run as a screensaver -help, --help Show help message SEE ALSO
xscreensaver(1) See the README for info about arena mode. AUTHOR
goban was written by Scott Draves <spot@draves.org>. This manual page was written by Al Nikolov <clown@debian.org>, for the Debian project (and may be used by others). The Debian package is dedicated to the Saint-Petersburg Go Federation and personally to Maxim Podolyak, it's President. November 4, 2010 GOBAN(1)
All times are GMT -4. The time now is 02:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy