-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeny_usb_vendor_id_rule.h
More file actions
33 lines (21 loc) · 856 Bytes
/
deny_usb_vendor_id_rule.h
File metadata and controls
33 lines (21 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) 2012 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_DENY_USB_VENDOR_ID_RULE_H_
#define PERMISSION_BROKER_DENY_USB_VENDOR_ID_RULE_H_
#include <stdint.h>
#include <string>
#include <base/macros.h>
#include "permission_broker/usb_subsystem_udev_rule.h"
namespace permission_broker {
class DenyUsbVendorIdRule : public UsbSubsystemUdevRule {
public:
explicit DenyUsbVendorIdRule(const uint16_t vendor_id);
~DenyUsbVendorIdRule() override = default;
Result ProcessUsbDevice(struct udev_device *device) override;
private:
const std::string vendor_id_;
DISALLOW_COPY_AND_ASSIGN(DenyUsbVendorIdRule);
};
} // namespace permission_broker
#endif // PERMISSION_BROKER_DENY_USB_VENDOR_ID_RULE_H_