mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Allow sepgsql labels to depend on object name.
The main change here is to call security_compute_create_name_raw() rather than security_compute_create_raw(). This ups the minimum requirement for libselinux from 2.0.99 to 2.1.10, but it looks like most distributions will have picked that up before 9.3 is out. KaiGai Kohei
This commit is contained in:
@ -250,10 +250,10 @@ sepgsql_avc_compute(const char *scontext, const char *tcontext, uint16 tclass)
|
||||
{
|
||||
if (!ucontext)
|
||||
ncontext = sepgsql_compute_create(scontext, tcontext,
|
||||
SEPG_CLASS_PROCESS);
|
||||
SEPG_CLASS_PROCESS, NULL);
|
||||
else
|
||||
ncontext = sepgsql_compute_create(scontext, ucontext,
|
||||
SEPG_CLASS_PROCESS);
|
||||
SEPG_CLASS_PROCESS, NULL);
|
||||
if (strcmp(scontext, ncontext) == 0)
|
||||
{
|
||||
pfree(ncontext);
|
||||
|
Reference in New Issue
Block a user