sbuild  1.7.2
deny.h
1 /* Copyright © 2005-2013 Roger Leigh <rleigh@debian.org>
2  *
3  * schroot is free software: you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * schroot is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see
15  * <http://www.gnu.org/licenses/>.
16  *
17  *********************************************************************/
18 
19 #ifndef SBUILD_AUTH_DENY_H
20 #define SBUILD_AUTH_DENY_H
21 
22 #include <sbuild/auth/auth.h>
23 
24 namespace sbuild
25 {
26  namespace auth
27  {
28 
36  class deny : public auth
37  {
38  private:
47  deny (const std::string& service_name);
48 
49  public:
53  virtual ~deny ();
54 
64  static auth::ptr
65  create (const std::string& service_name);
66 
73  virtual environment
74  get_auth_environment () const;
75 
76  virtual void
77  start ();
78 
79  virtual void
80  stop ();
81 
82  virtual void
83  authenticate (status auth_status);
84 
85  virtual bool
86  is_initialised () const;
87 
88  protected:
93  };
94 
95  }
96 }
97 
98 #endif /* SBUILD_AUTH_DENY_H */
99 
100 /*
101  * Local Variables:
102  * mode:C++
103  * End:
104  */
Debian source builder components.
Definition: ctty.cc:31
virtual void authenticate(status auth_status)
Perform PAM authentication.
Definition: deny.cc:96
virtual void stop()
Stop the PAM system.
Definition: deny.cc:90
virtual bool is_initialised() const
Check if PAM is initialised (i.e.
Definition: deny.cc:137
bool initialised
Is the serive initialised?
Definition: deny.h:90
virtual void start()
Start the PAM system.
Definition: deny.cc:75
Container of environment variables.
Definition: environment.h:38
virtual environment get_auth_environment() const
Get the PAM environment.
Definition: deny.cc:69
environment auth_environment
Minimal environment.
Definition: deny.h:92
static auth::ptr create(const std::string &service_name)
Create an deny object.
Definition: deny.cc:63
virtual ~deny()
The destructor.
Definition: deny.cc:49
Deny Authentication handler.
Definition: deny.h:36
deny(const std::string &service_name)
The constructor.
Definition: deny.cc:43
std::shared_ptr< auth > ptr
A shared_ptr to a auth object.
Definition: auth.h:102
status
Authentication status.
Definition: auth.h:78
Authentication handler.
Definition: auth.h:74