LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-18-2008, 08:23 AM   #1
davidbatelu
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Mounting with MS_MANDLOCK flag


Hi,
ive read all the current posts and i dont think this thread exists... or even if it does it passed my notice....
ive been trying for a while to mount the root filesystem with the MS_MANDLOCK flag set(for mandatory). ive already tried a function to do so, namely

#include <sys/mount.h>

mount("/dev/hdb", "/cdrom", ext2, MS_MANDLOCK | MS_REMOUNT, "");


but im not too sure this works. is there anyway of testing the superblock for these flags, or any other method to mount the system with mandatory locks. also is there anyway of modifyind the fstab to always mount the root fs with manlocks?
 
  


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
bootable flag noonmid27 Linux - Hardware 1 12-21-2006 10:37 AM
most-frequently-used flag lashgari Linux - General 3 06-22-2006 02:31 PM
your national flag acid_kewpie General 27 05-19-2006 12:48 PM
Use Of Secure_no_root Flag mulholland Linux - Security 0 01-12-2005 04:19 AM
bootable flag? alaios Debian 1 04-30-2004 12:37 AM


All times are GMT -5. The time now is 08:40 PM.

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