Upgrading USB Storage Device Permissions from within OS X Kernel Space
Upgrading USB Storage Device Permissions from within OS X Kernel Space
- Subject: Upgrading USB Storage Device Permissions from within OS X Kernel Space
- From: richard nistuk <email@hidden>
- Date: Fri, 5 Nov 2010 14:23:56 -0700
Hello,
I've asked this question on StackOverflow
(http://stackoverflow.com/questions/4083388/changing-usb-storage-device-permissions-from-within-os-x-kernel-space)
and thought I'd try here too.
In OS X kernel space, is there a way to upgrade the permissions of a
mounted USB storage device, a DOK, say, from read only to read/write?
I use the init method of IOMedia:
bool init(
UInt64 base,
UInt64 size,
UInt64 preferredBlockSize,
IOMediaAttributeMask attributes,
bool isWhole,
bool isWritable,
const char *contentHint = 0,
OSDictionary *properties = 0);
to create and attach the child media IOStorage object with isWritable
set to false, which sets the permissions of the USB device to read
only, but later, I need to change the permissions to read/write
without un-mounting and remounting.
Cheers,
Rich.
--
Rich Nistuk
email@hidden
www.danzisoft.ca
778 320-8483
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden