lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190121164511.10822-1-albertvaka@gmail.com>
Date:   Mon, 21 Jan 2019 17:45:10 +0100
From:   Albert Vaca Cintora <albertvaka@...il.com>
To:     jack@...e.cz, ebiederm@...ssion.com, linux-kernel@...r.kernel.org,
        nsaenzjulienne@...e.de
Cc:     Albert Vaca Cintora <albertvaka@...il.com>
Subject: [PATCH 0/1] kernel/ucounts: expose current inotify watch count

This patch enables reading the amount of inotify watches in use.

Inotify watches are a finite resource, in a similar way to available file
descriptors. However, there is no way to check how many watches we have
available or in use, we can only read the max.

This patch adds a 'current_inotify_watches' entry to the per-user sysctl table
that gets mounted under /proc/sys/user/. This is the same table that contains
'max_inotify_watches'.

The motivation for this patch is to be able to set up monitoring and alerting
before an application starts failing because it runs out of inotify watches.

Albert Vaca Cintora (1):
  kernel/ucounts: expose current inotify watch count

 kernel/ucount.c | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

--
2.20.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ