All of lore.kernel.org
 help / color / mirror / Atom feed
* User Mode Linux
@ 2012-03-28 17:14 Bill Chimiak
  0 siblings, 0 replies; 7+ messages in thread
From: Bill Chimiak @ 2012-03-28 17:14 UTC (permalink / raw)
  To: selinux

In trying to run User Mode Linux, I have to do a 
setsebool -P mmap_low_allowed 1

This seems a bad idea.

One thought is to run UMLs on only one machine where the 
mmap_low_allowed is kind of OK.

The other is to toggle mmap_low_allowed when UMLs need to be run
and toggle it off when done.

Any thoughts?

Does Xen VMs have the same problem?

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

* User Mode Linux
  2011-11-17 12:04     ` Vishal Thanki
       [not found]       ` <CAJnfX5ubAKa-eAMCugWQ2F3Cbn8sf6AGe6ZALcxF9xKiOo0wtA@mail.gmail.com>
@ 2011-11-18 14:02       ` Mulyadi Santosa
  1 sibling, 0 replies; 7+ messages in thread
From: Mulyadi Santosa @ 2011-11-18 14:02 UTC (permalink / raw)
  To: kernelnewbies

On Thu, Nov 17, 2011 at 19:04, Vishal Thanki <vishalthanki@gmail.com> wrote:
> I have one more question in the same line (i.e. related to UML). I
> tried loading an external module (build for ARCH=um type). I am able
> to load that module only if i've booted UML with following command:
>
> ./linux ubda=<raw_file_system_path>
>
> If i pass the mem parameter, i.e.
>
> ./linux ubda=<raw_file_system_path> mem=512M
>
> I am not able to load the module. The error that I am seeing is:
>
> overflow in relocation type 11 val a121c3c0
> `tun' likely not compiled with -mcmodel=kernel

could be a UML specific bug. Have you tried other kernel version?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

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

* User Mode Linux
       [not found]       ` <CAJnfX5ubAKa-eAMCugWQ2F3Cbn8sf6AGe6ZALcxF9xKiOo0wtA@mail.gmail.com>
@ 2011-11-17 13:50         ` Vishal Thanki
  0 siblings, 0 replies; 7+ messages in thread
From: Vishal Thanki @ 2011-11-17 13:50 UTC (permalink / raw)
  To: kernelnewbies

On Thu, Nov 17, 2011 at 7:04 PM, Anuz Pratap Singh Tomar
<chambilkethakur@gmail.com> wrote:
>
>
> On Thu, Nov 17, 2011 at 12:04 PM, Vishal Thanki <vishalthanki@gmail.com>
> wrote:
>>
>> On Wed, Nov 16, 2011 at 9:14 AM, Vishal Thanki <vishalthanki@gmail.com>
>> wrote:
>> >
>> > On Tue, Nov 15, 2011 at 8:09 PM, Lakshmipathi.G
>> > <lakshmipathi.g@gmail.com> wrote:
>> > > But the 2nd command (i.e. losetup) returns with the error complaining
>> > > "/dev/loop1" is not present, but I can see /dev/loop[0..7] files
>> > > present.
>> > >
>> > > Try loading the module as -
>> > >
>> > > #modprobe loop
>> >
>>
>> I have one more question in the same line (i.e. related to UML). I
>> tried loading an external module (build for ARCH=um type). I am able
>> to load that module only if i've booted UML with following command:
>>
>> ./linux ubda=<raw_file_system_path>
>>
>> If i pass the mem parameter, i.e.
>>
>> ./linux ubda=<raw_file_system_path> mem=512M
>>
>> I am not able to load the module. The error that I am seeing is:
>>
>> overflow in relocation type 11 val a121c3c0
>> `tun' likely not compiled with -mcmodel=kernel
>>
>> I tried to load the tun.ko. This holds true for any manually built
>> simple hello_world kind of module too (where i added -mcmodel=kernel
>> parameter in Makefile).
>>
>> What can be wrong with "mem=512M" parameter? I change the size of mem
>> to 128K to 1G, but nothing works. It just doesn't like "mem" parameter
>> as bootargs.
>>
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> try compiling it statically

I gave tun.ko as an example. I want to load my own module which is not
part of linux kernel.

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

* User Mode Linux
  2011-11-16  3:44   ` Vishal Thanki
@ 2011-11-17 12:04     ` Vishal Thanki
       [not found]       ` <CAJnfX5ubAKa-eAMCugWQ2F3Cbn8sf6AGe6ZALcxF9xKiOo0wtA@mail.gmail.com>
  2011-11-18 14:02       ` Mulyadi Santosa
  0 siblings, 2 replies; 7+ messages in thread
From: Vishal Thanki @ 2011-11-17 12:04 UTC (permalink / raw)
  To: kernelnewbies

On Wed, Nov 16, 2011 at 9:14 AM, Vishal Thanki <vishalthanki@gmail.com> wrote:
>
> On Tue, Nov 15, 2011 at 8:09 PM, Lakshmipathi.G
> <lakshmipathi.g@gmail.com> wrote:
> > But the 2nd command (i.e. losetup) returns with the error complaining
> > "/dev/loop1" is not present, but I can see /dev/loop[0..7] files
> > present.
> >
> > Try loading the module as -
> >
> > #modprobe loop
>

I have one more question in the same line (i.e. related to UML). I
tried loading an external module (build for ARCH=um type). I am able
to load that module only if i've booted UML with following command:

./linux ubda=<raw_file_system_path>

If i pass the mem parameter, i.e.

./linux ubda=<raw_file_system_path> mem=512M

I am not able to load the module. The error that I am seeing is:

overflow in relocation type 11 val a121c3c0
`tun' likely not compiled with -mcmodel=kernel

I tried to load the tun.ko. This holds true for any manually built
simple hello_world kind of module too (where i added -mcmodel=kernel
parameter in Makefile).

What can be wrong with "mem=512M" parameter? I change the size of mem
to 128K to 1G, but nothing works. It just doesn't like "mem" parameter
as bootargs.


>
> This worked. Thanks for pointing that out.
>
> > and check again.
> > My question, is it possible to do this exercise under UML (User mode linux)?
> > If you are asking about whether is it possible use to loop device on UML
> > machine,
> > then the answer is 'Yes'.
> > HTH
> >
> > --
> > ----
> > Cheers,
> > Lakshmipathi.G
> > FOSS Programmer.
> > www.giis.co.in
> >

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

* User Mode Linux
  2011-11-15 14:39 ` Lakshmipathi.G
@ 2011-11-16  3:44   ` Vishal Thanki
  2011-11-17 12:04     ` Vishal Thanki
  0 siblings, 1 reply; 7+ messages in thread
From: Vishal Thanki @ 2011-11-16  3:44 UTC (permalink / raw)
  To: kernelnewbies

On Tue, Nov 15, 2011 at 8:09 PM, Lakshmipathi.G
<lakshmipathi.g@gmail.com> wrote:
> But the 2nd command (i.e. losetup) returns with the error complaining
> "/dev/loop1" is not present, but I can see /dev/loop[0..7] files
> present.
>
> Try loading the module as -
>
> #modprobe loop

This worked. Thanks for pointing that out.

> and check again.
> My question, is it possible to do this exercise under UML (User mode linux)?
> If you are asking about whether is it possible use to loop device on UML
> machine,
> then the answer is 'Yes'.
> HTH
>
> --
> ----
> Cheers,
> Lakshmipathi.G
> FOSS Programmer.
> www.giis.co.in
>

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

* User Mode Linux
  2011-11-15 12:53 Vishal Thanki
@ 2011-11-15 14:39 ` Lakshmipathi.G
  2011-11-16  3:44   ` Vishal Thanki
  0 siblings, 1 reply; 7+ messages in thread
From: Lakshmipathi.G @ 2011-11-15 14:39 UTC (permalink / raw)
  To: kernelnewbies

But the 2nd command (i.e. losetup) returns with the error complaining
"/dev/loop1" is not present, but I can see /dev/loop[0..7] files
present.

Try loading the module as -

#modprobe loop

and check again.

My question, is it possible to do this exercise under UML (User mode linux)?
If you are asking about whether is it possible use to loop device on UML
machine,
then the answer is 'Yes'.

HTH

-- 
----
Cheers,
Lakshmipathi.G
FOSS Programmer.
www.giis.co.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111115/32d8e10b/attachment.html 

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

* User Mode Linux
@ 2011-11-15 12:53 Vishal Thanki
  2011-11-15 14:39 ` Lakshmipathi.G
  0 siblings, 1 reply; 7+ messages in thread
From: Vishal Thanki @ 2011-11-15 12:53 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

I am trying to create a loopback block device under a UML (running
kernel 3.1.0).
I used following commands:

# dd if=/dev/zero of=/tmp/store1 bs=1024 seek=2047 count=1
# losetup /dev/loop1 /tmp/store1

But the 2nd command (i.e. losetup) returns with the error complaining
"/dev/loop1" is not present, but I can see /dev/loop[0..7] files
present.

My question, is it possible to do this exercise under UML (User mode linux)?

Thanks,
Vishal

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

end of thread, other threads:[~2012-03-28 17:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-28 17:14 User Mode Linux Bill Chimiak
  -- strict thread matches above, loose matches on Subject: below --
2011-11-15 12:53 Vishal Thanki
2011-11-15 14:39 ` Lakshmipathi.G
2011-11-16  3:44   ` Vishal Thanki
2011-11-17 12:04     ` Vishal Thanki
     [not found]       ` <CAJnfX5ubAKa-eAMCugWQ2F3Cbn8sf6AGe6ZALcxF9xKiOo0wtA@mail.gmail.com>
2011-11-17 13:50         ` Vishal Thanki
2011-11-18 14:02       ` Mulyadi Santosa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.