LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2006, 04:41 PM   #1
avaleriu
LQ Newbie
 
Registered: Nov 2006
Location: Monterey, CA
Distribution: Ubuntu 6.06
Posts: 7

Rep: Reputation: Disabled
Need to modify chmod & mv to make use of a time-based access control policy


Greetings all,

A former student in my class designed a kernel module for time-based access control. Now my class has to go through the original Linux (FC4 or 5) binaries and modify them to make use of the changes. I have been assigned chmod and mv.

I am comfortable using Linux and the basics, but have never tried to modify the source. Where do I find the source for the distro, and once I have that, is there an easy way to find all the lines that pertain to my binaries? It may be apparent once I open up the source, but as I said I've never done that.

Thank you in advance for any help.

Andy
 
Old 11-03-2006, 08:59 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Wow...that's pretty intense.

Well, if you already have the kernel sources, they will be located in /usr/src/linux. Keep in mind, the kernel isn't written in just C and/or C++, there's a bit of assembly in there, too.

 
Old 11-03-2006, 09:08 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
If I understand well, you won't have to touch anything in the kernel. Just download the source rpm for mv and chmod; the binary is: rpm -qf $(which mv) $(which chmod)

Good luck. That's not an easy work.

Yves.
 
Old 11-03-2006, 09:26 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
A former student in my class designed a kernel module for time-based access control.
Apologies for the OT post, but would it be possible to share any details about this?
 
  


Reply



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
Cannot adjust date & time, KDE Control Module error /home/kyle Linux - Software 2 08-04-2018 08:39 PM
Timed based access restrictions with squid & danguardian keithdj Fedora 3 04-19-2006 10:27 AM
help with policy based routing GaijinPunch Linux - Networking 4 06-19-2005 06:35 PM
traffic- flow control (speed)&(access) N_A_J_M Linux - General 2 08-22-2003 08:29 AM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:56 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
Open Source Consulting | Domain Registration