blob: ccc43c17da444eabac490af9e19054ae85f3fd4b [file] [log] [blame]
// Copyright (c) 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 SHILL_SCOPED_UMASK_H_
#define SHILL_SCOPED_UMASK_H_
#include <sys/types.h>
#include <base/basictypes.h>
namespace shill {
class ScopedUmask {
public:
explicit ScopedUmask(mode_t new_umask);
~ScopedUmask();
private:
mode_t saved_umask_;
DISALLOW_COPY_AND_ASSIGN(ScopedUmask);
};
} // namespace shill
#endif // SHILL_SCOPED_UMASK_H_