PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/ug.h

http://bdremote-ng.googlecode.com/
C++ Header | 49 lines | 5 code | 7 blank | 37 comment | 0 complexity | bbb911144ffc70a176de819cd5f0b0be MD5 | raw file
 1/*
 2 *  bdremoteng - helper daemon for Sony(R) BD Remote Control
 3 *  Based on bdremoted, written by Anton Starikov <antst@mail.ru>.
 4 *
 5 *  Copyright (C) 2009  Michael Wojciechowski <wojci@wojci.dk>
 6 *
 7 *
 8 *  This program is free software; you can redistribute it and/or modify
 9 *  it under the terms of the GNU General Public License as published by
10 *  the Free Software Foundation; either version 2 of the License, or
11 *  (at your option) any later version.
12 *
13 *  This program is distributed in the hope that it will be useful,
14 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *  GNU General Public License for more details.
17 *
18 *  You should have received a copy of the GNU General Public License
19 *  along with this program; if not, write to the Free Software
20 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21 *
22 */
23
24#ifndef BD_UG_H
25#define BD_UG_H
26
27/** @defgroup UID UID/GID Interface.
28
29 *  This group contains a function used to change the UID/GID of the
30 *  application to one with less priviledges.
31
32 *  @{
33 */
34
35/*! \file ug.h
36  \brief Change UID/GID.
37
38  This file contains a function used to change UID/GID.
39
40*/
41
42/** Change to the UID:GID corresponding to the provided user:group. */
43int changeUIDAndGID(const char* _user,
44                    const char* _group);
45
46#endif /* BD_UG_H */
47
48/*@}*/
49