LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2006, 01:21 AM   #1
fc3_fan
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
It is possible to modify the /proc/cpuinfo ?


i would like to modify the file under :
/proc/cpuinfo

I use vi but the file was read only
event i use chmod u+w

if this issue possible please reply

regards,
andrianus
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-31-2006, 01:45 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
The /proc filesystem is a virtual one, the files in there aren't real and the filesystem as a whole is simply an interface to some of the information the kernel is holding in memory.

Can I ask why you would want to edit that file in the first place?
 
Old 07-31-2006, 03:17 AM   #3
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I'll answer the question as yes you could edit the file with vi and save changes given that the user has privelages to do so. Root is probably the only one.

Now would those changes completely fubar your system? I don't know, I see no reason to change that information. Like cs-cam, I'm interested in the Why question.

-- edit --
bummer, I click on cs-cam's link. It said my brain was eaten

Last edited by musicman_ace; 07-31-2006 at 03:18 AM.
 
Old 07-31-2006, 03:19 AM   #4
krisealv
Member
 
Registered: Jan 2004
Location: Hareid, Norway
Distribution: Ubuntu
Posts: 111

Rep: Reputation: 15
hack it

He probably wants to boast of a faster cpu than he really has got. Maybe if you copy everything in proc into a diffrent directory, than disable proc in fstab.

Maybe you could change the directory of proc in fstab into /tmp/proc, and put up links of everything into /proc, then you could edit the cpuinfo file manually

Have not tried this though, and I belive quite a few programs use proc. I think that's the reason why we keep it around. After all we do have sysfs now.
 
Old 07-31-2006, 03:24 AM   #5
Xena
Member
 
Registered: Nov 2005
Posts: 84

Rep: Reputation: 15
Could just slip in a new CPU, that'll change the cpuinfo...
 
Old 07-31-2006, 04:05 AM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Quote:
Originally Posted by musicman_ace
-- edit --
bummer, I click on cs-cam's link. It said my brain was eaten
Bahahaha, another one joins the legions
 
Old 07-31-2006, 09:41 PM   #7
fc3_fan
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks a lot every body for the kind reply of my issue

The only reason why do i need to modify /proc/cpuinfo was because i'm working for security software.

The software will ignore if the system running with Celeron "D" processor
The idea if i could change the information on /proc/cpuinfo so the problem solved

I got frustated with this issue, ihope sombody could help me
I beleave there is a way to do that, some thing like doing path may be

Any way thank you so much

 
Old 07-31-2006, 09:46 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
/proc/cpuinfo reflects what is actually installed in your machine. I think one respondent had it right: "Change /proc/info by putting in a different cpu/".

I suggest that you give us some more details as to what you are up to. WHAT security SW??
 
Old 07-31-2006, 10:46 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
Agreed - cpuinfo reflects what's installed, and if you want to change it you need to install a different CPU. To say it another way, I can't really think of any useful reason to "change it". That's sort of like saying "I've got a 40G drive, but I want it to appear as though it is a 100G drive". It doesn't make any sense, and doesn't match reality. Rather than to change cpuinfo, you might want to ask the other guys at your security company why they disabled their software for Celeron D processors.
 
Old 08-01-2006, 02:58 AM   #10
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Rep: Reputation: 31
alternatively he can just change the L2 cache of 256 to 128kb so that it becomes in class of Celeron and Not CELERON-D ..... so no kinda overclocking or risk of hangups?????..........that might have happened if he did from 256 to 512kb which made it a Pentium ?
But why such an apparently dumb and useless security feature?....... I bet its for microsoft's vista
 
Old 08-01-2006, 09:25 PM   #11
fc3_fan
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Gentleman,

It is not for Microsoft product, the software I've developt is for Military waepon, before the program getting up, my program will check hardware routine...

My company doesn't supply the hardware they use, that why we must protect our software... we just don't know the software don't work perfectly in Celeron...

So, when the user start the program it will doing check first.. if found celeron it will turn it off automatically..

That why i need to modify the information on /proc/cpuinfo
if i just modify the description "Celeron(R)" to "Pentium(R)" all my problem will solve.

alternatively we could by a new pentium... but the government already purchace 1000 celeron...

that is all my problem

regards,

Andrianus
 
Old 08-02-2006, 03:23 AM   #12
AmphetaminePhreak
Member
 
Registered: Jul 2006
Location: kinda transient right now. Utah is Home, staying in Ohio
Distribution: Mandrake 9.1/Windows XP
Posts: 46

Rep: Reputation: 15
blaaaaaahahahahahah! i fell out of my chair. they should make a forum section for the funniest posts ever, and an option to rate veiwed posts as criteria for humor raiting. i'd vote for this one to be put there for sure.

#1 response, this guy:

Quote:
He probably wants to boast of a faster cpu than he really has got. Maybe if you copy everything in proc into a diffrent directory, than disable proc in fstab.

Maybe you could change the directory of proc in fstab into /tmp/proc, and put up links of everything into /proc, then you could edit the cpuinfo file manually

Have not tried this though, and I belive quite a few programs use proc. I think that's the reason why we keep it around. After all we do have sysfs now.
however, someone may actually follow your directions and that would be nasty.

//funnyFlag 1

Last edited by AmphetaminePhreak; 08-02-2006 at 07:56 AM.
 
Old 08-02-2006, 03:29 AM   #13
AmphetaminePhreak
Member
 
Registered: Jul 2006
Location: kinda transient right now. Utah is Home, staying in Ohio
Distribution: Mandrake 9.1/Windows XP
Posts: 46

Rep: Reputation: 15
mover right along, nothing to see here. sorry for the double post.

Last edited by AmphetaminePhreak; 08-02-2006 at 03:31 AM.
 
Old 08-02-2006, 08:28 AM   #14
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Heh, yea just tell us all about this military weapon we could do something about it..patches for you, you know..like backdoors that only open using some arabic letters or something..

 
Old 08-05-2006, 03:19 AM   #15
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Rep: Reputation: 31
fc3_fan I sympathize ...... so tell me did this changing /proc/cpu config work?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/proc/cpuinfo flag lm Henry_1 Linux - General 7 11-16-2007 12:37 AM
Proc/CpuInfo sipsipi Linux - Software 4 03-03-2006 12:42 PM
/proc/cpuinfo says processor is 700mhz? J--Lew Linux - Newbie 3 10-19-2005 09:18 AM
/proc/cpuinfo oops! feta Linux - Hardware 2 11-08-2004 11:16 PM
/proc/cpuinfo embsupafly Linux - General 3 12-29-2003 07:54 AM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration