mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 15:43:56 +00:00
default ahci_drv and part_blk Block sessions to read-only
Add a "writeable" policy option to the ahci_drv and part_blk Block servers and default from writeable to ready-only. Should a policy permit write acesss the session request argument "writeable" may still downgrade a session to ready-only. Fix #2469
This commit is contained in:
committed by
Christian Helmuth
parent
cf2886dc8f
commit
1fce8d0d74
@ -222,9 +222,11 @@ void scsi_add_device(struct scsi_device *sdev)
|
||||
* XXX move to 'main'
|
||||
*/
|
||||
if (!announce) {
|
||||
enum { WRITEABLE = true };
|
||||
|
||||
PREPARE_WORK(&delayed, ack_packet);
|
||||
static Block::Root root(_signal->ep(), Lx::Malloc::mem(),
|
||||
_signal->rm(), factory);
|
||||
_signal->rm(), factory, WRITEABLE);
|
||||
_signal->parent().announce(_signal->ep().rpc_ep().manage(&root));
|
||||
announce = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user