SLES 12 - vsftpd with AppArmor in enforce mode, “lftp” error for “ls” command: `ls' at 0 [500 OOPS: setrlimit]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












In a virtual machine (VM) with SLES 12 (SUSE Linux Enterprise Server 12), after enforcing ("enforce mode") the AppArmor profile for "vsftpd" to confine it (via the "aa-enforce vsftpd" command), I'm doing a "lftp" session to "localhost", authenticating with the "ftp" user and some password. By doing that, I get the ftp shell prompt (as expected). However, when I run the "ls" command in that ftp shell, I get the following error message:



`ls' at 0 [500 OOPS: setrlimit]


This error does NOT happen when I run vsftpd in "complain mode" / "learning mode" (via "aa-complain vsftpd"): in that case, I do get the expected file and directory listing when I run the "ls" command in the "ftp" shell.



A Google search for "500 OOPS: setrlimit" apparently does not return relevant results.



Could you help me troubleshoot this, please?



In case it's useful, here is the content of my "/etc/apparmor.d/usr.sbin.vsftpd" file:



server:/etc/apparmor.d # cat usr.sbin.vsftpd 
# Last Modified: Sun Oct 29 19:55:42 2017
#include <tunables/global>

/usr/sbin/vsftpd
#include <abstractions/apache2-common>
#include <abstractions/base>


capability net_bind_service,
capability setgid,
capability setuid,
capability sys_admin,
capability sys_chroot,

/etc/vsftpd.conf r,
/run/nscd/group r,
/run/nscd/passwd r,
/srv/ftp/ r,
/srv/ftp/* rw,
/srv/ftp/test/ w,
/srv/ftp/upload/* wk,
/usr/sbin/vsftpd mr,








share|improve this question
























    up vote
    1
    down vote

    favorite












    In a virtual machine (VM) with SLES 12 (SUSE Linux Enterprise Server 12), after enforcing ("enforce mode") the AppArmor profile for "vsftpd" to confine it (via the "aa-enforce vsftpd" command), I'm doing a "lftp" session to "localhost", authenticating with the "ftp" user and some password. By doing that, I get the ftp shell prompt (as expected). However, when I run the "ls" command in that ftp shell, I get the following error message:



    `ls' at 0 [500 OOPS: setrlimit]


    This error does NOT happen when I run vsftpd in "complain mode" / "learning mode" (via "aa-complain vsftpd"): in that case, I do get the expected file and directory listing when I run the "ls" command in the "ftp" shell.



    A Google search for "500 OOPS: setrlimit" apparently does not return relevant results.



    Could you help me troubleshoot this, please?



    In case it's useful, here is the content of my "/etc/apparmor.d/usr.sbin.vsftpd" file:



    server:/etc/apparmor.d # cat usr.sbin.vsftpd 
    # Last Modified: Sun Oct 29 19:55:42 2017
    #include <tunables/global>

    /usr/sbin/vsftpd
    #include <abstractions/apache2-common>
    #include <abstractions/base>


    capability net_bind_service,
    capability setgid,
    capability setuid,
    capability sys_admin,
    capability sys_chroot,

    /etc/vsftpd.conf r,
    /run/nscd/group r,
    /run/nscd/passwd r,
    /srv/ftp/ r,
    /srv/ftp/* rw,
    /srv/ftp/test/ w,
    /srv/ftp/upload/* wk,
    /usr/sbin/vsftpd mr,








    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      In a virtual machine (VM) with SLES 12 (SUSE Linux Enterprise Server 12), after enforcing ("enforce mode") the AppArmor profile for "vsftpd" to confine it (via the "aa-enforce vsftpd" command), I'm doing a "lftp" session to "localhost", authenticating with the "ftp" user and some password. By doing that, I get the ftp shell prompt (as expected). However, when I run the "ls" command in that ftp shell, I get the following error message:



      `ls' at 0 [500 OOPS: setrlimit]


      This error does NOT happen when I run vsftpd in "complain mode" / "learning mode" (via "aa-complain vsftpd"): in that case, I do get the expected file and directory listing when I run the "ls" command in the "ftp" shell.



      A Google search for "500 OOPS: setrlimit" apparently does not return relevant results.



      Could you help me troubleshoot this, please?



      In case it's useful, here is the content of my "/etc/apparmor.d/usr.sbin.vsftpd" file:



      server:/etc/apparmor.d # cat usr.sbin.vsftpd 
      # Last Modified: Sun Oct 29 19:55:42 2017
      #include <tunables/global>

      /usr/sbin/vsftpd
      #include <abstractions/apache2-common>
      #include <abstractions/base>


      capability net_bind_service,
      capability setgid,
      capability setuid,
      capability sys_admin,
      capability sys_chroot,

      /etc/vsftpd.conf r,
      /run/nscd/group r,
      /run/nscd/passwd r,
      /srv/ftp/ r,
      /srv/ftp/* rw,
      /srv/ftp/test/ w,
      /srv/ftp/upload/* wk,
      /usr/sbin/vsftpd mr,








      share|improve this question












      In a virtual machine (VM) with SLES 12 (SUSE Linux Enterprise Server 12), after enforcing ("enforce mode") the AppArmor profile for "vsftpd" to confine it (via the "aa-enforce vsftpd" command), I'm doing a "lftp" session to "localhost", authenticating with the "ftp" user and some password. By doing that, I get the ftp shell prompt (as expected). However, when I run the "ls" command in that ftp shell, I get the following error message:



      `ls' at 0 [500 OOPS: setrlimit]


      This error does NOT happen when I run vsftpd in "complain mode" / "learning mode" (via "aa-complain vsftpd"): in that case, I do get the expected file and directory listing when I run the "ls" command in the "ftp" shell.



      A Google search for "500 OOPS: setrlimit" apparently does not return relevant results.



      Could you help me troubleshoot this, please?



      In case it's useful, here is the content of my "/etc/apparmor.d/usr.sbin.vsftpd" file:



      server:/etc/apparmor.d # cat usr.sbin.vsftpd 
      # Last Modified: Sun Oct 29 19:55:42 2017
      #include <tunables/global>

      /usr/sbin/vsftpd
      #include <abstractions/apache2-common>
      #include <abstractions/base>


      capability net_bind_service,
      capability setgid,
      capability setuid,
      capability sys_admin,
      capability sys_chroot,

      /etc/vsftpd.conf r,
      /run/nscd/group r,
      /run/nscd/passwd r,
      /srv/ftp/ r,
      /srv/ftp/* rw,
      /srv/ftp/test/ w,
      /srv/ftp/upload/* wk,
      /usr/sbin/vsftpd mr,










      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 '17 at 17:40









      ricmarques

      174110




      174110

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403931%2fsles-12-vsftpd-with-apparmor-in-enforce-mode-lftp-error-for-ls-command%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403931%2fsles-12-vsftpd-with-apparmor-in-enforce-mode-lftp-error-for-ls-command%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?