php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #73340 SHMOP: Access to SHM_LOCK, SHM_UNLOCK
Submitted: 2016-10-18 18:11 UTC Modified: -
From: narf at devilix dot net Assigned:
Status: Open Package: POSIX related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: narf at devilix dot net
New email:
PHP Version: OS:

 

 [2016-10-18 18:11 UTC] narf at devilix dot net
Description:
------------
I was looking for a way to store encryption keys in (guaranteed to be non-swap) memory, and apparently setting the SHM_LOCK flag on a shared memory segment seems to be the only way to do that.

Obviously, PHP doesn't expose shmctl() directly and that's probably for a good reason, but can we have something like shmop_lock(), or an optional parameter to shmop_open()?

(on a related note, shmop_stat() would be nice too)


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 23 15:01:24 2021 UTC