← Back to team overview

touch-packages team mailing list archive

[Bug 1255424] Re: include of dir fails when the number of files in the dir approaches or exceeds the processes fd limit

 

** Tags added: aa-parser

** Changed in: apparmor
       Status: Confirmed => Triaged

** Changed in: apparmor (Ubuntu)
       Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1255424

Title:
  include of dir fails when the number of files in the dir approaches or
  exceeds the processes fd limit

Status in AppArmor Linux application security framework:
  Triaged
Status in “apparmor” package in Ubuntu:
  Triaged

Bug description:
  The apparmor parser handles directory includes in an odd way, where
  each file in the directory is opened and the pushed as a flex buffer
  state before any files in the directory are actually processed. The
  flex buffers and associated fds are then processed one by one and the
  <eof> handling pops the buffer (and closes the fd) to get to the next
  file to process.

  This means that if a directory contains a lot of files the include
  could fail as the parser will run out of available fds.

To manage notifications about this bug go to:
https://bugs.launchpad.net/apparmor/+bug/1255424/+subscriptions