Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue26835

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Add file-sealing ops to fcntl
Type:enhancementStage:resolved
Components:Extension ModulesVersions:Python 3.6
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: christian.heimes, iritkatriel, nanjekyejoannah
Priority:normalKeywords:patch

Created on2016-04-24 13:53 bychristian.heimes, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 13015closednanjekyejoannah,2019-04-29 21:30
PR 13694mergedchristian.heimes,2019-05-31 09:36
Messages (3)
msg264108 -(view)Author: Christian Heimes (christian.heimes)*(Python committer)Date: 2016-04-24 13:53
The file-sealing ops are useful for memfd_create(). The new syscall and ops are only available on Linux with a recent kernel.http://man7.org/linux/man-pages/man2/fcntl.2.htmlhttp://man7.org/linux/man-pages/man2/memfd_create.2.htmlCode:#include <linux/fcntl.h>#ifndef F_ADD_SEALS/* * Set/Get seals */#define F_ADD_SEALS     (F_LINUX_SPECIFIC_BASE + 9)#define F_GET_SEALS     (F_LINUX_SPECIFIC_BASE + 10)/* * Types of seals */#define F_SEAL_SEAL     0x0001  /* prevent further seals from being set */#define F_SEAL_SHRINK   0x0002  /* prevent file from shrinking */#define F_SEAL_GROW     0x0004  /* prevent file from growing */#define F_SEAL_WRITE    0x0008  /* prevent writes *//* (1U << 31) is reserved for signed error codes */#endif /* F_ADD_SEALS */
msg344087 -(view)Author: Christian Heimes (christian.heimes)*(Python committer)Date: 2019-05-31 16:32
New changeset8cbb5b6625268400d6e9092b75b06d6f90398dc9 by Christian Heimes in branch 'master':bpo-26835: Add file sealing constants to fcntl (GH-13694)https://github.com/python/cpython/commit/8cbb5b6625268400d6e9092b75b06d6f90398dc9
msg378381 -(view)Author: Irit Katriel (iritkatriel)*(Python committer)Date: 2020-10-10 10:41
This seems complete, can it be closed?
History
DateUserActionArgs
2022-04-11 14:58:30adminsetgithub: 71022
2020-10-21 16:31:22christian.heimessetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-10-10 10:41:00iritkatrielsetnosy: +iritkatriel
messages: +msg378381
2019-05-31 16:32:36christian.heimessetmessages: +msg344087
2019-05-31 09:36:56christian.heimessetpull_requests: +pull_request13580
2019-04-29 21:30:56nanjekyejoannahsetkeywords: +patch
stage: needs patch -> patch review
pull_requests: +pull_request12938
2019-04-28 02:38:39nanjekyejoannahsetnosy: +nanjekyejoannah
2016-06-12 11:22:18christian.heimessetassignee:christian.heimes ->
2016-04-24 13:53:19christian.heimescreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp