blob: e8868f2ad37fc7e05bd3ec9263eb57c2f491c3c5 [file] [log] [blame]
// Copyright 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PERMISSION_BROKER_ALLOW_GROUP_TTY_DEVICE_RULE_H_
#define PERMISSION_BROKER_ALLOW_GROUP_TTY_DEVICE_RULE_H_
#include <string>
#include "permission_broker/tty_subsystem_udev_rule.h"
namespace permission_broker {
class AllowGroupTtyDeviceRule : public TtySubsystemUdevRule {
public:
explicit AllowGroupTtyDeviceRule(const std::string& group_name);
~AllowGroupTtyDeviceRule() override = default;
Result ProcessTtyDevice(udev_device* device) override;
private:
const std::string group_name_;
DISALLOW_COPY_AND_ASSIGN(AllowGroupTtyDeviceRule);
};
} // namespace permission_broker
#endif // PERMISSION_BROKER_ALLOW_GROUP_TTY_DEVICE_RULE_H_