Re: [dev] [surf] can't follow a link for download

2020-02-22 Thread Renato A . Galvão
2020-02-20 14:15 GMT-03:00, Reiner Herrmann :
> On Thu, Feb 20, 2020 at 02:05:01PM -0300, Renato A. Galvão wrote:
>> >>> surf: execvp x-terminal-emulator failed: Permission denied
>>
>> There is an apparmor file,
>>
>> /etc/apparmor.d/usr.bin.surf
>>
> [...]
>>   /usr/bin/stterm ix,
>
> In the past st was shipped in the stterm package with only an stterm
> binary.
> Nowaways the stterm package includes the st binary again (and a symlink
> from stterm to st). But AppArmor doesn't seem to follow symlinks.
> I will update the surf profile in the next upload. Thanks for the hint.
>
> Regards,
>   Reiner
>

Thank you for your support.



Re: [dev] [surf] can't follow a link for download

2020-02-20 Thread Reiner Herrmann
On Thu, Feb 20, 2020 at 02:05:01PM -0300, Renato A. Galvão wrote:
> >>> surf: execvp x-terminal-emulator failed: Permission denied
> 
> There is an apparmor file,
> 
> /etc/apparmor.d/usr.bin.surf
> 
[...]
>   /usr/bin/stterm ix,

In the past st was shipped in the stterm package with only an stterm
binary.
Nowaways the stterm package includes the st binary again (and a symlink
from stterm to st). But AppArmor doesn't seem to follow symlinks.
I will update the surf profile in the next upload. Thanks for the hint.

Regards,
  Reiner


signature.asc
Description: PGP signature


Re: [dev] [surf] can't follow a link for download

2020-02-20 Thread Renato A . Galvão
2020-02-20 11:33 GMT-03:00, Renato A. Galvão :
> 2020-02-20 10:35 GMT-03:00, Greg Reagle :
>> On Thu, Feb 20, 2020, at 08:26, Renato A. Galvão wrote:
>>> I use the packaged version buster (stable) of surf in Debian.
>>>
>>> While trying to make any download I'm receiving this:
>>>
>>> surf: execvp x-terminal-emulator failed: Permission denied
>>
>> Run the command x-terminal-emulator from a shell prompt.  What happens?
>>
>> Also, try these commands:
>> ls -l $(which x-terminal-emulator)
>> ls -l /etc/alternatives/x-terminal-emulator
>>
>>
>
> It opens st, which is my default terminal emulator.
>
> ls -l $(which x-terminal-emulator)
> lrwxrwxrwx 1 root root 37 jun 17  2016 /usr/bin/x-terminal-emulator ->
> /etc/alternatives/x-terminal-emulator
>
> ls -l /etc/alternatives/x-terminal-emulator
> lrwxrwxrwx 1 root root 11 jul 14  2019
> /etc/alternatives/x-terminal-emulator -> /usr/bin/st
>

There is an apparmor file,

/etc/apparmor.d/usr.bin.surf

where the following directives is found:

  # for downloading files
  /dev/ptmx rw,
  /dev/pts/* rw,
  /usr/bin/stterm ix,
  # unconfined because it is called in (and downloading to) the cwd
  /usr/bin/curl Ux,



Re: [dev] [surf] can't follow a link for download

2020-02-20 Thread Renato A . Galvão
2020-02-20 10:35 GMT-03:00, Greg Reagle :
> On Thu, Feb 20, 2020, at 08:26, Renato A. Galvão wrote:
>> I use the packaged version buster (stable) of surf in Debian.
>>
>> While trying to make any download I'm receiving this:
>>
>> surf: execvp x-terminal-emulator failed: Permission denied
>
> Run the command x-terminal-emulator from a shell prompt.  What happens?
>
> Also, try these commands:
> ls -l $(which x-terminal-emulator)
> ls -l /etc/alternatives/x-terminal-emulator
>
>

It opens st, which is my default terminal emulator.

ls -l $(which x-terminal-emulator)
lrwxrwxrwx 1 root root 37 jun 17  2016 /usr/bin/x-terminal-emulator ->
/etc/alternatives/x-terminal-emulator

ls -l /etc/alternatives/x-terminal-emulator
lrwxrwxrwx 1 root root 11 jul 14  2019
/etc/alternatives/x-terminal-emulator -> /usr/bin/st



Re: [dev] [surf] can't follow a link for download

2020-02-20 Thread Greg Reagle
On Thu, Feb 20, 2020, at 08:26, Renato A. Galvão wrote:
> I use the packaged version buster (stable) of surf in Debian.
> 
> While trying to make any download I'm receiving this:
> 
> surf: execvp x-terminal-emulator failed: Permission denied

Run the command x-terminal-emulator from a shell prompt.  What happens?

Also, try these commands:
ls -l $(which x-terminal-emulator)
ls -l /etc/alternatives/x-terminal-emulator



Re: [dev] [surf] can't follow a link for download

2020-02-20 Thread Quentin Rameau
> Dear developers,

Hi Renato,

> I use the packaged version buster (stable) of surf in Debian.
> 
> While trying to make any download I'm receiving this:
> 
> surf: execvp x-terminal-emulator failed: Permission denied

This seems to be a Debian issue, surf uses "st" terminal emulator by
default, it seems that Debian packager(s) decided to replace that with
"x-terminal-emulator" which seems to be problematic on your system.

I suggest enquiring about that over-there!