linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* Re: [linux-lvm] Protection of used scsi disks by LVM
@ 2000-04-27 16:29 Steffers
  0 siblings, 0 replies; 5+ messages in thread
From: Steffers @ 2000-04-27 16:29 UTC (permalink / raw)
  To: linux-lvm

Hello everyone..

> > I can easily go to /dev/sda1 for example, and erase everything on it.
>
> These are the UNIX/Linux semantics.
> 
> If one has the file/device special permission one can do every kind
> of stupid things which come to ones mind.
>

cat /dev/null > /dev/ttyS0 comes rapidly to mind ;)
 
> > Of course it is a stupid thing to do, but there is a minimal requirement
on
> > protection, isn't it ?
> Yes, you are right.
> but IMHO there's no way today with the existing kernel implementation.

this (afiak) isnt a 'kernel' problem but more a problem that could
be fixed in the userspace. All it would take is a quick diff to 
the 'mkfs' tools and fdisk (or whatever you use cfdisk, gdisk etc)
so that it would recognise the partition type of '8e' as a LV
and then not allow, or at least strenously warn, the user
as to what they are doing. this would seem to make more sense
and (to be honest) i would _hate_ it if Linux by default queried
my every command, so that suggest to me that it +is+ a per
user thing, and not a kernel issue.

also remember, that this isnt like 'certain other operating systems'.
*nix's in general are kind of like theism, with a 'god hands on
the machine' approach. If you want to do anything to the system 
then you have the power to do so at any point. If your 'god'
in an idiot, well, *shrug*.
 
regards,
Stefs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Protection of used scsi disks by LVM
  2000-04-27 13:52 Sergey Vichik
@ 2000-04-27 17:32 ` Andi Kleen
  0 siblings, 0 replies; 5+ messages in thread
From: Andi Kleen @ 2000-04-27 17:32 UTC (permalink / raw)
  To: Sergey Vichik; +Cc: 'linux-lvm@msede.com'

On Thu, Apr 27, 2000 at 03:52:47PM +0200, Sergey Vichik wrote:
> 
> Hello,
> 
> I have a question : 
> Why does LVM not protect the scsi devices which are used for volumes ?
> 
> I can easily go to /dev/sda1 for example, and erase everything on it.
> 
> Of course it is a stupid thing to do, but there is a minimal requirement on
> protection, isn't it ?

<as folklore says:>

Unix/Linux doesn't stop you (=root) from doing stupid things, because
that would stop you from doing clever things.


-Andi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Protection of used scsi disks by LVM
  2000-04-27 13:14 Heinz Mauelshagen
@ 2000-04-27 15:13 ` Paul Jakma
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Jakma @ 2000-04-27 15:13 UTC (permalink / raw)
  To: Heinz Mauelshagen; +Cc: linux-lvm

On Thu, 27 Apr 2000, Heinz Mauelshagen wrote:

> Because it can't.
> The only way would be to remove then underlying devices from the genhd
> in the kernel, which obviously is not a good idea(tm) ;-{)
> 

:)


> These are the UNIX/Linux semantics.
> 
> If one has the file/device special permission one can do every kind
> of stupid things which come to ones mind.

indeed. However we can try to build a measure of intelligence into the
tools. Eg Digital Unix disklabel tools will not allow you to mess with
disklabels that are under control of the LVM or AdvFs.

(course you can still do it manually.)

So who wants to hack fdisk to check for LVM? :)

> 
> Regards,
> Heinz
> 
> 

-paul jakma

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [linux-lvm] Protection of used scsi disks by LVM
@ 2000-04-27 13:52 Sergey Vichik
  2000-04-27 17:32 ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Sergey Vichik @ 2000-04-27 13:52 UTC (permalink / raw)
  To: 'linux-lvm@msede.com'


Hello,

I have a question : 
Why does LVM not protect the scsi devices which are used for volumes ?

I can easily go to /dev/sda1 for example, and erase everything on it.

Of course it is a stupid thing to do, but there is a minimal requirement on
protection, isn't it ?

I cannot think about the way to protect it, because LVM uses those disks as
every other programs.

Any ideas ?

Regards.

Sergey .

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Protection of used scsi disks by LVM
@ 2000-04-27 13:14 Heinz Mauelshagen
  2000-04-27 15:13 ` Paul Jakma
  0 siblings, 1 reply; 5+ messages in thread
From: Heinz Mauelshagen @ 2000-04-27 13:14 UTC (permalink / raw)
  To: linux-lvm


Hi Sergey.

> 
> Hello,
> 
> I have a question : 
> Why does LVM not protect the scsi devices which are used for volumes ?
> 

Because it can't.
The only way would be to remove then underlying devices from the genhd
in the kernel, which obviously is not a good idea(tm) ;-{)

> I can easily go to /dev/sda1 for example, and erase everything on it.

These are the UNIX/Linux semantics.

If one has the file/device special permission one can do every kind
of stupid things which come to ones mind.

> 
> Of course it is a stupid thing to do, but there is a minimal requirement on
> protection, isn't it ?
> 

Yes, you are right.
but IMHO there's no way today with the existing kernel implementation.

> I cannot think about the way to protect it, because LVM uses those disks as
> every other programs.
> 
> Any ideas ?
> 

Regards,
Heinz

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement TS                              T-Nova
                                                 Entwicklungszentrum Darmstadt
Heinz Mauelshagen                                Otto-Roehm-Strasse 71c
Senior Systems Engineer                          Postfach 10 05 41
                                                 64205 Darmstadt
mge@EZ-Darmstadt.Telekom.de                      Germany
                                                 +49 6151 886-425
                                                          FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-04-27 17:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-27 16:29 [linux-lvm] Protection of used scsi disks by LVM Steffers
  -- strict thread matches above, loose matches on Subject: below --
2000-04-27 13:52 Sergey Vichik
2000-04-27 17:32 ` Andi Kleen
2000-04-27 13:14 Heinz Mauelshagen
2000-04-27 15:13 ` Paul Jakma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).