~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to src/include/commands/seclabel.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * seclabel.h
 
3
 *
 
4
 * Prototypes for functions in commands/seclabel.c
 
5
 *
 
6
 * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
 
7
 * Portions Copyright (c) 1994, Regents of the University of California
 
8
 */
 
9
#ifndef SECLABEL_H
 
10
#define SECLABEL_H
 
11
 
 
12
#include "catalog/objectaddress.h"
 
13
#include "nodes/primnodes.h"
 
14
#include "nodes/parsenodes.h"
 
15
 
 
16
/*
 
17
 * Internal APIs
 
18
 */
 
19
extern char *GetSecurityLabel(const ObjectAddress *object,
 
20
                                 const char *provider);
 
21
extern void SetSecurityLabel(const ObjectAddress *object,
 
22
                                 const char *provider, const char *label);
 
23
extern void DeleteSecurityLabel(const ObjectAddress *object);
 
24
 
 
25
/*
 
26
 * Statement and ESP hook support
 
27
 */
 
28
extern void ExecSecLabelStmt(SecLabelStmt *stmt);
 
29
 
 
30
typedef void (*check_object_relabel_type) (const ObjectAddress *object,
 
31
                                                                                                           const char *seclabel);
 
32
extern void register_label_provider(const char *provider,
 
33
                                                check_object_relabel_type hook);
 
34
 
 
35
#endif   /* SECLABEL_H */