All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Enable vlc to run as root
@ 2015-09-15 13:20 jpinto
  2015-09-15 13:33 ` Vicente Olivert Riera
  0 siblings, 1 reply; 4+ messages in thread
From: jpinto @ 2015-09-15 13:20 UTC (permalink / raw)
  To: buildroot

A great number of embedded system only include the root user. 
This patch has the goal of enabling vlc to be ran as root.

Signed-off-by: jpinto <jpinto@synopsys.com>
Tested-by: jpinto <jpinto@synopsys.com>
---
 package/vlc/vlc.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/vlc/vlc.mk b/package/vlc/vlc.mk
index 6f7fd58..4e84b12 100644
--- a/package/vlc/vlc.mk
+++ b/package/vlc/vlc.mk
@@ -54,6 +54,7 @@ VLC_CONF_OPTS += \
 	--disable-mfx \
 	--disable-vdpau \
 	--disable-addonmanagermodules \
+	--enable-run-as-root \
 
 # Building static and shared doesn't work, so force static off.
 ifeq ($(BR2_STATIC_LIBS),)
-- 
1.8.1.5

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

* [Buildroot] [PATCH] Enable vlc to run as root
  2015-09-15 13:20 [Buildroot] [PATCH] Enable vlc to run as root jpinto
@ 2015-09-15 13:33 ` Vicente Olivert Riera
  2015-09-15 13:48   ` Joao Pinto
  0 siblings, 1 reply; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-09-15 13:33 UTC (permalink / raw)
  To: buildroot

Dear Joao Pinto,

Regards,

Vincent.

On 09/15/2015 02:20 PM, jpinto wrote:
> A great number of embedded system only include the root user.

systems

> This patch has the goal of enabling vlc to be ran as root.
> 
> Signed-off-by: jpinto <jpinto@synopsys.com>
> Tested-by: jpinto <jpinto@synopsys.com>

Use your full name here.

> ---
>  package/vlc/vlc.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/vlc/vlc.mk b/package/vlc/vlc.mk
> index 6f7fd58..4e84b12 100644
> --- a/package/vlc/vlc.mk
> +++ b/package/vlc/vlc.mk
> @@ -54,6 +54,7 @@ VLC_CONF_OPTS += \
>  	--disable-mfx \
>  	--disable-vdpau \
>  	--disable-addonmanagermodules \
> +	--enable-run-as-root \

I don't know if running vlc as root is disabled by default due to
security reasons, but if so, perhaps we could do this selectable by the
user via menuconfig.

Also, there is a guy here [1] saying that although he configured it with
--enable-run-as-root, it still not working:

[1]
http://www.hackersgarage.com/vlc-is-not-supposed-to-be-run-as-root-sorry-solution.html

Have you done a runtime test to check that it actually works?

Regards,

Vincent.

>  
>  # Building static and shared doesn't work, so force static off.
>  ifeq ($(BR2_STATIC_LIBS),)
> 

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

* [Buildroot] [PATCH] Enable vlc to run as root
  2015-09-15 13:33 ` Vicente Olivert Riera
@ 2015-09-15 13:48   ` Joao Pinto
  2015-09-15 21:11     ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Joao Pinto @ 2015-09-15 13:48 UTC (permalink / raw)
  To: buildroot

Hi Vicent,

On 9/15/2015 2:33 PM, Vicente Olivert Riera wrote:
> Dear Joao Pinto,
> 
> Regards,
> 
> Vincent.
> 
> On 09/15/2015 02:20 PM, jpinto wrote:
>> A great number of embedded system only include the root user.
> 
> systems
> 
>> This patch has the goal of enabling vlc to be ran as root.
>>
>> Signed-off-by: jpinto <jpinto@synopsys.com>
>> Tested-by: jpinto <jpinto@synopsys.com>
> 
> Use your full name here.

Ok, in future patches I will do it.

> 
>> ---
>>  package/vlc/vlc.mk | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/package/vlc/vlc.mk b/package/vlc/vlc.mk
>> index 6f7fd58..4e84b12 100644
>> --- a/package/vlc/vlc.mk
>> +++ b/package/vlc/vlc.mk
>> @@ -54,6 +54,7 @@ VLC_CONF_OPTS += \
>>  	--disable-mfx \
>>  	--disable-vdpau \
>>  	--disable-addonmanagermodules \
>> +	--enable-run-as-root \
> 
> I don't know if running vlc as root is disabled by default due to
> security reasons, but if so, perhaps we could do this selectable by the
> user via menuconfig.

I understand that security might be an issue since VLC is not used only for
reproducing video.

> 
> Also, there is a guy here [1] saying that although he configured it with
> --enable-run-as-root, it still not working:

For me worked fine with this change.

> 
> [1]
> http://www.hackersgarage.com/vlc-is-not-supposed-to-be-run-as-root-sorry-solution.html
> 
> Have you done a runtime test to check that it actually works?

Yes, I made a project using the ARM Juno r1 board and worked perfectly.

> 
> Regards,
> 
> Vincent.
> 
>>  
>>  # Building static and shared doesn't work, so force static off.
>>  ifeq ($(BR2_STATIC_LIBS),)
>>

Thanks,
Joao Pinto

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

* [Buildroot] [PATCH] Enable vlc to run as root
  2015-09-15 13:48   ` Joao Pinto
@ 2015-09-15 21:11     ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-09-15 21:11 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 15 Sep 2015 14:48:45 +0100, Joao Pinto wrote:

> >> This patch has the goal of enabling vlc to be ran as root.
> >>
> >> Signed-off-by: jpinto <jpinto@synopsys.com>
> >> Tested-by: jpinto <jpinto@synopsys.com>
> > 
> > Use your full name here.
> 
> Ok, in future patches I will do it.

We actually need your full name for this patch as well. Signed-off-by
is a legal statement, so we need people to use their full name.

Can you send a v2 of your patch?

> > I don't know if running vlc as root is disabled by default due to
> > security reasons, but if so, perhaps we could do this selectable by the
> > user via menuconfig.

I don't think this is necessary. We don't do that for any of the other
packages in Buildroot. So from my point of view, the patch is OK, it
only needs to be resubmitted with a full name (as the From and in
Signed-off-by).

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-09-15 21:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-15 13:20 [Buildroot] [PATCH] Enable vlc to run as root jpinto
2015-09-15 13:33 ` Vicente Olivert Riera
2015-09-15 13:48   ` Joao Pinto
2015-09-15 21:11     ` Thomas Petazzoni

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.