JP2011150490A - Program, apparatus and method for file control - Google Patents

Program, apparatus and method for file control Download PDF

Info

Publication number
JP2011150490A
JP2011150490A JP2010010446A JP2010010446A JP2011150490A JP 2011150490 A JP2011150490 A JP 2011150490A JP 2010010446 A JP2010010446 A JP 2010010446A JP 2010010446 A JP2010010446 A JP 2010010446A JP 2011150490 A JP2011150490 A JP 2011150490A
Authority
JP
Japan
Prior art keywords
file
volatile memory
instruction
operating system
descriptor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010010446A
Other languages
Japanese (ja)
Other versions
JP5435642B2 (en
Inventor
Shimizu Imaizumi
清水 今泉
Kazumitsu Aoyama
和光 青山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
IVEX KK
Original Assignee
IVEX KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by IVEX KK filed Critical IVEX KK
Priority to JP2010010446A priority Critical patent/JP5435642B2/en
Publication of JP2011150490A publication Critical patent/JP2011150490A/en
Application granted granted Critical
Publication of JP5435642B2 publication Critical patent/JP5435642B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a file control program or the like that achieves control of operation of read/write to a file, allowing the control of the read/write without imposing an excessive load on arithmetic processing of a computer and without depending on hardware. <P>SOLUTION: It is decided in an API whether a designated file is a file stored in a volatile memory to instructions to specify a file that is a target of the read/write of the file from an application program. When the designated file is a file stored in a nonvolatile secondary storage device, an OS is made to copy the file to the volatile memory, and a file descriptor is made to be generated to the copied file to restrict the later target of the read/write to the files stored in the volatile memory. Because can perform the writing into only the volatile memory wherein data are erased when power is cut off, coping with unauthorized bringing-out or falsification of the file becomes possible. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、ファイルを持ち出しや改ざん等の不正行為から保護するために、ファイルに対する読み書きの操作を制御するためのファイル制御プログラム、ファイル制御装置及びファイル制御方法に関するものである。   The present invention relates to a file control program, a file control apparatus, and a file control method for controlling a read / write operation on a file in order to protect the file from illegal acts such as taking out and falsification.

個人情報などの重要情報をコンピュータによって管理する際には、重要情報が書き込まれたファイルが持ち出されたり改ざんされたりすることがないように、ファイルの適切な保護が求められる。例えば、パスワードや暗号化によりアクセス権限を設定することによってファイルを保護することが行われているが、これらの方法は権限を有する者による不正行為に対応できないという問題がある。   When important information such as personal information is managed by a computer, appropriate protection of the file is required so that the file in which the important information is written is not taken out or altered. For example, a file is protected by setting an access authority with a password or encryption, but these methods have a problem that they cannot cope with an illegal act by an authorized person.

こうした課題に対応するために、ファイルの持ち出しそのものを物理的に禁止する方法が考えられる。例えば、ファイルサーバからファイル等のデータを端末にダウンロードして利用する場合に、端末で書き込み処理が行われるとデータを二次記憶装置に書き込むことを禁止し、揮発性メモリにキャッシュさせる発明が開示されている(特許文献1の段落0014〜0015参照)。   In order to cope with such a problem, a method of physically prohibiting file take-out itself can be considered. For example, when data such as a file is downloaded from a file server to a terminal and used, when the terminal performs a writing process, the invention prohibits writing the data to the secondary storage device and caches the data in a volatile memory. (See paragraphs 0014 to 0015 of Patent Document 1).

特開2007−172063号公報JP 2007-172063 A

特許文献1記載の発明によると、ファイルサーバからダウンロードしたファイルを端末に保存しようとしても揮発性メモリにしか書き込むことができないので、端末の電源を落とせばファイルは自動的に消去されてしまい、端末の二次記憶装置にファイルが保存されて、不正に持ち出されることを防止することができる。しかしながら、この発明によっても、以下に示すようないくつかの課題が生じることが考えられる。   According to the invention described in Patent Document 1, a file downloaded from a file server can only be written to a volatile memory even if an attempt is made to save it in the terminal. Therefore, if the terminal is turned off, the file is automatically deleted. It is possible to prevent the file from being stored in the secondary storage device and being taken out illegally. However, it is conceivable that the present invention has some problems as described below.

第1に、読み書きの際に揮発性メモリへのキャッシュを判断する処理等によって、コンピュータにパフォーマンスを低下させるおそれがあるという点である。この発明によると、ファイルに対する書き込み処理又は読み込み処理が行われる際には、処理の種別を判定して、揮発性メモリへの書き込み等の実行を判断することとされている。すなわち、データを読み書きする命令(readやwrite)が行われる度にこの判定が行われ、揮発性メモリへの書き込み等の処理が実行されるものである。   First, there is a possibility that the performance of the computer may be lowered by a process of determining a cache in the volatile memory at the time of reading and writing. According to the present invention, when a write process or a read process is performed on a file, the type of the process is determined and execution of writing to the volatile memory or the like is determined. That is, this determination is made each time an instruction (read or write) for reading / writing data is performed, and processing such as writing to a volatile memory is executed.

一方、こうしたデータの読み書きについては、1回あたりの処理によって可能なデータ量が通常はアプリケーションにおいて制限されているため、アプリケーションを用いて生成した1つのファイルを指定して読み書きをしようとすると、ファイルが複数のデータに分割されて読み書きの命令が行われることになる。そのため、1つのファイルを読み書きしようとした際には、分割されたデータ毎に上記の判定が行われるため、1つのファイルのデータ量が多くなればなるほどコンピュータに演算処理の負荷がかかり、パフォーマンスや信頼性の低下を招くおそれがある。   On the other hand, with regard to reading and writing such data, the amount of data that can be processed per process is usually limited by the application, so if you try to read or write by specifying a single file generated using the application, Is divided into a plurality of data, and a read / write instruction is performed. Therefore, when trying to read / write one file, the above determination is performed for each divided data. Therefore, as the amount of data in one file increases, the calculation load on the computer increases. There is a risk of lowering reliability.

第2に、読み書きの禁止がハードウェア制御によって実現されているため、制御の対象外となっているハードウェアに対する読み書きが行われてしまうおそれがあるという点である。この発明では、ファイルシステムへのIO処理をフックするドライバによって書き込み禁止等の制御を行うこととしているが(特許文献1の段落0013参照)、ドライバはハードウェアを制御するものであるため、書き込みを禁止する対象はハードウェアに依存することとなり、制御の対象外であるハードウェア(例えば、USBメモリ等の外部記憶装置)に対する読み書きが実行されてしまうおそれが生じる。   Second, since prohibition of reading and writing is realized by hardware control, there is a possibility that reading and writing to hardware that is not subject to control may be performed. In the present invention, control such as write prohibition is performed by a driver that hooks IO processing to the file system (see paragraph 0013 of Patent Document 1). However, since the driver controls hardware, writing is performed. The object to be prohibited depends on the hardware, and there is a risk that reading and writing to hardware that is not subject to control (for example, an external storage device such as a USB memory) will be executed.

本発明は、このような課題に対応するためになされたものであり、コンピュータの演算処理に過度な負荷をかけることなく、かつハードウェアに依存することなく読み書きを制御することが可能な、ファイルを持ち出しや改ざん等の不正行為から保護するためのファイルに対する読み書きの操作の制御を実現するファイル制御プログラム、ファイル制御装置及びファイル制御方法を提供することを目的とするものである。   The present invention has been made in order to cope with such a problem, and is capable of controlling reading and writing without applying an excessive load on computer processing and without depending on hardware. It is an object of the present invention to provide a file control program, a file control apparatus, and a file control method that realize control of a read / write operation on a file for protecting it from illegal activities such as taking out and falsification.

このような課題を解決する本発明は、ファイルに対する読み書きの操作を制御するためのファイル制御プログラムであって、コンピュータに、アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令を検出するファイル特定命令検出ステップと、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルが、前記コンピュータの揮発性メモリに記憶されたファイルであるかを判断するファイル記憶領域判断ステップと、前記ファイル記憶領域判断ステップでファイルリストに含まれると判断された場合には、前記コンピュータのオペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリに記憶されたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第1のファイルディスクリプタ要求ステップと、前記ファイル記憶領域判断ステップでファイルリストに含まれないと判断された場合には、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルを前記揮発性メモリにコピーすることを要求するコピー要求ステップと、前記コピー要求ステップで要求したファイルが前記揮発性メモリにコピーされると、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリにコピーされたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第2のファイルディスクリプタ要求ステップと、前記アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令に対する戻り値として、前記第1のファイルディスクリプタ要求ステップ、又は前記第2のファイルディスクリプタ要求ステップでのファイルディスクリプタの生成要求に対して前記オペレーティングシステムが生成したファイルディスクリプタを返すファイルディスクリプタ応答ステップと、に実行させることを特徴とするファイル制御プログラムである。   The present invention that solves such a problem is a file control program for controlling a read / write operation on a file, and detects an instruction for specifying a file to be read / written requested by an application program on a computer. A file specifying instruction detecting step; a file storage area determining step for determining whether a file specified by the instruction detected in the file specifying instruction detecting step is a file stored in a volatile memory of the computer; If it is determined in the file storage area determination step that the file is included in the file list, the file stored in the volatile memory in the operating system of the computer or the application program interface of the operating system is stored. A first file descriptor requesting step for requesting generation of a file descriptor to be used for reading and writing to the file, and when the file storage area determining step determines that it is not included in the file list, the operating system or the operating system A copy request step for requesting the application program interface of the system to copy the file specified by the instruction detected in the file specification instruction detection step to the volatile memory, and the file requested in the copy request step When copied to volatile memory, the file copied to volatile memory is copied to the operating system or an application program interface of the operating system. A second file descriptor requesting step for requesting generation of a file descriptor to be used for reading and writing to the first file descriptor, and a return value for an instruction for specifying a file to be read / written requested by the application program. And a file descriptor response step for returning a file descriptor generated by the operating system in response to a file descriptor generation request in the request step or the second file descriptor request step. is there.

本発明では、ファイルに対する読み書きの命令を制御するのではなく、読み書きの命令において指定されるファイルディスクリプタを生成するための読み書きの対象となるファイルを特定する命令(openやcreate等)を制御する。ファイルを特定する命令を受け付けた際には、必ず揮発性メモリに記憶されたファイルに対してファイルディスクリプタを生成してアプリケーションに返すよう制御することによって、その後にファイルディスクリプタを指定して実行される読み書きの対象を、揮発性メモリに記憶されたファイルのみに制限している。   In the present invention, an instruction for specifying a file to be read / written for generating a file descriptor specified in the read / write instruction (open, create, etc.) is controlled instead of controlling a read / write instruction for the file. When an instruction to specify a file is received, the file descriptor is always generated for the file stored in the volatile memory and returned to the application, and then the file descriptor is specified and executed. The target of reading and writing is limited to only files stored in volatile memory.

揮発性メモリに記憶されたデータはコンピュータの電源を落とすと消去されるので、二次記憶装置に記憶されたファイルに不正な書き込みが行われてファイルが改ざんされることや、二次記憶装置にファイルが書き込まれて不正に持ち出されることを防止するのに有効であるとともに、ファイルを特定する命令に対して揮発性メモリに記憶されたファイルのファイルディスクリプタを返すことによって、ファイルの読み書きの命令(readやwrite等)に対しては制御を行う必要がないので、1つのファイルに対する制御のための処理が1回で済み、演算処理を効率化するのに効果的である。また、ハードウェア(二次記憶装置)への書き込み処理をドライバで制御するものではないため、書き込みを禁止する対象をハードウェアに依存することなく、コンピュータから読み書きできるどの二次記憶装置に対しても制御が可能になる。   Since the data stored in the volatile memory is deleted when the computer is turned off, the file stored in the secondary storage device is illegally written and the file is altered, or the secondary storage device Effective in preventing a file from being written and illegally taken out, and returning a file descriptor for the file stored in volatile memory in response to an instruction identifying the file, thereby reading and writing the file ( read, write, etc.) need not be controlled. Therefore, the process for controlling one file is only required once, which is effective in improving the efficiency of arithmetic processing. In addition, since the writing process to the hardware (secondary storage device) is not controlled by the driver, any secondary storage device that can be read and written from the computer without depending on the hardware is prohibited. Can also be controlled.

また、本発明は、前記コンピュータに、前記コピー要求ステップで要求したファイルが前記揮発性メモリにコピーされると、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルの識別情報と、前記揮発性メモリにコピーされたファイルの識別情報を関連付けて、前記揮発性メモリにファイルリストとして記憶させるファイルリスト書込ステップを実行させ、前記ファイル記憶領域判断ステップでは、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルが前記ファイルリストに含まれるかによって、前記コンピュータの揮発性メモリに記憶されたファイルであるかを判断することを特徴とすることもできる。   In addition, the present invention, when the file requested in the copy request step is copied to the volatile memory, the file identification information specified by the instruction detected in the file specification instruction detection step, A file list writing step for associating identification information of a file copied to the volatile memory and storing the file as a file list in the volatile memory is executed. In the file storage area determining step, the file specifying instruction detecting step is performed. Whether the file specified by the detected command is included in the file list or not is determined as a file stored in the volatile memory of the computer.

このように構成すると、二次記憶装置等の元の保存場所から揮発性メモリにコピーが生成されたファイルのファイルリストが記憶されるため、以後の処理において、二次記憶装置等に記憶されたファイルを読み書きの対象として特定する命令を受け付けた際に、揮発性メモリにコピーが生成されているかどうかを速やかに判断することができる。   With this configuration, since the file list of the files generated by copying from the original storage location such as the secondary storage device to the volatile memory is stored, it is stored in the secondary storage device or the like in the subsequent processing. When an instruction for specifying a file as a read / write target is received, it is possible to quickly determine whether a copy is generated in the volatile memory.

さらに、本発明は、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルは、前記揮発性メモリ、又は不揮発性の二次記憶装置に記憶されたファイルであり、前記コピー要求ステップでは、前記二次記憶装置から読み出したファイルの前記揮発性メモリへのコピーを要求し、前記二次記憶装置には、前記コンピュータ内にある補助記憶装置、前記コンピュータに接続された外部記憶装置、前記コンピュータとネットワークを通じて接続されたコンピュータ内にある補助記憶装置が含まれることを特徴としてもよい。   Further, according to the present invention, the file specified by the instruction detected in the file specifying instruction detection step is a file stored in the volatile memory or a non-volatile secondary storage device, and in the copy request step Requesting a copy of the file read from the secondary storage device to the volatile memory, the secondary storage device including an auxiliary storage device in the computer, an external storage device connected to the computer, An auxiliary storage device in a computer connected to the computer through a network may be included.

このように構成すると、コンピュータのハードディスク、USBメモリ等の外部記憶装置、ネットワークで接続されたファイルサーバのハードディスク等に記憶されたファイルを、制御の対象とすることができる。   With this configuration, a file stored in a hard disk of a computer, an external storage device such as a USB memory, a hard disk of a file server connected via a network, or the like can be controlled.

さらに、本発明は、前記コンピュータに、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルが、不揮発性の二次記憶装置においてあらかじめ定められた記憶領域に記憶されたファイルかを判断する記憶領域判断ステップと、前記記憶領域判断ステップであらかじめ定められた記憶領域に記憶されたファイルと判断された場合には、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記記憶領域に記憶されたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第3のファイルディスクリプタ要求ステップと、前記アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令に対する戻り値として、前記第3のファイルディスクリプタ要求ステップでのファイルディスクリプタの生成要求に対して前記オペレーティングシステムが生成したファイルディスクリプタを返すステップと、を実行させ、前記記憶領域判断ステップであらかじめ定められた記憶領域に記憶されたファイルと判断された場合には、前記ファイル記憶領域判断ステップを実行しない、又は、前記ファイル記憶領域判断ステップを実行してファイルリストに含まれないと判断された場合であっても、前記コピー要求ステップを実行しないことを特徴としてもよい。   Further, according to the present invention, the computer determines whether the file specified by the instruction detected in the file specifying instruction detection step is a file stored in a predetermined storage area in a non-volatile secondary storage device. Storage area determining step, and when the storage area determining step determines that the file is stored in a predetermined storage area, the operating system, or an application program interface of the operating system, A third file descriptor requesting step for requesting generation of a file descriptor to be used for reading and writing with respect to a stored file, and an instruction for specifying a file to be read / written requested by the application program And a step of returning a file descriptor generated by the operating system in response to a file descriptor generation request in the third file descriptor request step, as a return value to be executed, and predetermined in the storage area determination step When it is determined that the file is stored in the storage area, the file storage area determination step is not executed, or the file storage area determination step is executed and it is determined that the file is not included in the file list. Alternatively, the copy request step may not be executed.

このように構成すると、二次記憶装置に記憶された全てのファイルを制御の対象とするのではなく、一部のファイルについては不揮発性メモリではなく二次記憶装置に保存された元のファイルへの読み書きを可能にし、持ち出しや改ざん禁止の対象から除外することができる。   With this configuration, not all files stored in the secondary storage device are subject to control, but some files are restored to the original files stored in the secondary storage device instead of the non-volatile memory. Can be read and written, and excluded from the object of prohibition of taking-out and tampering.

本発明は、本発明にかかるファイル制御プログラムを備えたファイル制御装置として特定することもできる。   The present invention can also be specified as a file control apparatus including the file control program according to the present invention.

本発明にかかるファイル制御装置は、ファイルに対する読み書きの操作を制御するためのファイル制御装置であって、アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令を検出するファイル特定命令検出手段と、前記ファイル特定命令検出手段が検出した命令により特定されるファイルが、前記コンピュータの揮発性メモリに記憶されたファイルであるかを判断するファイル記憶領域判断手段と、前記ファイル記憶領域判断手段においてファイルリストに含まれると判断された場合には、前記コンピュータのオペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリに記憶されたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第1のファイルディスクリプタ要求手段と、前記ファイル記憶領域判断手段においてファイルリストに含まれないと判断された場合には、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルを前記揮発性メモリにコピーすることを要求するコピー要求手段と、前記コピー要求手段が要求したファイルが前記揮発性メモリにコピーされると、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリにコピーされたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第2のファイルディスクリプタ要求手段と、前記アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令に対する戻り値として、前記第1のファイルディスクリプタ要求手段、又は前記第2のファイルディスクリプタ要求手段によるファイルディスクリプタの生成要求に対して前記オペレーティングシステムが生成したファイルディスクリプタを返すファイルディスクリプタ応答手段と、を備えることを特徴とするファイル制御装置である。   A file control apparatus according to the present invention is a file control apparatus for controlling a read / write operation on a file, and a file specifying instruction detecting means for detecting an instruction specifying a file to be read / written requested from an application program A file storage area determination means for determining whether a file specified by the instruction detected by the file specification instruction detection means is a file stored in a volatile memory of the computer; and the file storage area determination means If it is determined that the file is included in the file list, the file used for reading / writing the file stored in the volatile memory in the operating system of the computer or the application program interface of the operating system. A first file descriptor requesting unit that requests generation of a file descriptor, and a file storage area determining unit that determines that the file descriptor is not included in the file list, the operating system or an application program interface of the operating system Copy request means for requesting copying of the file specified by the instruction detected in the file specifying instruction detection step to the volatile memory; and the file requested by the copy request means is copied to the volatile memory. Then, the operating system, or the application program interface of the operating system, uses a file decoder for use in reading and writing files copied to the volatile memory. As a return value for a second file descriptor request means for requesting generation of a crypter and an instruction for specifying a file to be read / written requested by the application program, the first file descriptor request means or the second file descriptor request means And a file descriptor response unit that returns a file descriptor generated by the operating system in response to a file descriptor generation request by the file descriptor request unit.

本発明は、本発明にかかるファイル制御プログラムにより実行されるファイル制御方法として特定することもできる。   The present invention can also be specified as a file control method executed by the file control program according to the present invention.

本発明にかかるファイル制御方法は、ファイルに対する読み書きの操作を制御するためのファイル制御方法であって、コンピュータが、アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令を検出するファイル特定命令検出ステップと、前記コンピュータが、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルが、前記コンピュータの揮発性メモリに記憶されたファイルであるかを判断するファイル記憶領域判断ステップと、前記コンピュータが、前記ファイル記憶領域判断ステップでファイルリストに含まれると判断された場合には、前記コンピュータのオペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリに記憶されたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第1のファイルディスクリプタ要求ステップと、前記コンピュータが、前記ファイル記憶領域判断ステップでファイルリストに含まれないと判断された場合には、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルを前記揮発性メモリにコピーすることを要求するコピー要求ステップと、前記コンピュータが、前記コピー要求ステップで要求したファイルが前記揮発性メモリにコピーされると、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリにコピーされたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第2のファイルディスクリプタ要求ステップと、前記コンピュータが、前記アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令に対する戻り値として、前記第1のファイルディスクリプタ要求ステップ、又は前記第2のファイルディスクリプタ要求ステップでのファイルディスクリプタの生成要求に対して前記オペレーティングシステムが生成したファイルディスクリプタを返すファイルディスクリプタ応答ステップと、を有することを特徴とするファイル制御方法である。   A file control method according to the present invention is a file control method for controlling a read / write operation on a file, wherein a computer detects a command for specifying a file to be read / written requested by an application program. An instruction detecting step; and a file storage area determining step in which the computer determines whether the file specified by the instruction detected in the file specifying instruction detecting step is a file stored in a volatile memory of the computer. When the computer is determined to be included in the file list in the file storage area determining step, the operating system of the computer, or the application program interface of the operating system, A first file descriptor requesting step for requesting generation of a file descriptor for use in reading and writing with respect to a file stored in the volatile memory; and the computer determines that the file storage area determining step does not include the file in the file list A copy request for requesting the operating system or an application program interface of the operating system to copy the file specified by the instruction detected in the file specifying instruction detection step to the volatile memory; And when the file requested in the copy requesting step is copied to the volatile memory, the operating system or an application of the operating system A second file descriptor requesting step for requesting generation of a file descriptor to be used for reading and writing the file copied to the volatile memory; and a read / write target requested by the application program from the application program A file descriptor generated by the operating system in response to a file descriptor generation request in the first file descriptor request step or the second file descriptor request step is returned as a return value for an instruction for specifying a file to be And a file descriptor response step.

本発明によって、コンピュータの演算処理に過度な負荷をかけることなく、二次記憶装置に記憶されたファイルに対する読み書きを制御し、持ち出しや改ざん等の不正行為からファイルを保護することが可能になる。また、ドライバにおいて二次記憶装置への読み書きを制御するものではないため、ハードウェアに依存することなく、コンピュータから読み書きが可能な全てのファイルを制御対象とすることができる。   According to the present invention, it is possible to control reading / writing with respect to a file stored in the secondary storage device without imposing an excessive load on the arithmetic processing of the computer, and to protect the file from illegal acts such as take-out and tampering. In addition, since the driver does not control reading and writing to the secondary storage device, all files that can be read and written from the computer can be controlled without depending on the hardware.

本発明をスタンドアローンのコンピュータに用いる実施形態の概要を示す図である。It is a figure which shows the outline | summary of embodiment which uses this invention for a stand-alone computer. 本発明をファイルサーバとネットワークを介して接続されたコンピュータに用いる実施形態の概要を示す図である。It is a figure which shows the outline | summary of embodiment which uses this invention for the computer connected to the file server via the network. 本発明にかかるファイル制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the file control apparatus concerning this invention. 読み書きの対象となるファイルを特定する流れを示す図である。It is a figure which shows the flow which specifies the file used as the object of reading / writing. ファイルへの読み書きの流れを示す図である。It is a figure which shows the flow of reading / writing to a file. 本発明において、読み書きの対象となるファイル(揮発性メモリにコピーされている場合)を特定する命令を制御する流れを示す図である。In the present invention, it is a diagram showing a flow of controlling an instruction for specifying a file to be read and written (when copied to a volatile memory). 本発明において、読み書きの対象となるファイル(揮発性メモリにコピーされていない場合)を特定する命令を制御する流れを示す第1の図である。FIG. 6 is a first diagram illustrating a flow of controlling an instruction for specifying a file (when not copied to a volatile memory) to be read / written in the present invention. 本発明において、読み書きの対象となるファイル(揮発性メモリにコピーされていない場合)を特定する命令を制御する流れを示す第2の図である。FIG. 9 is a second diagram showing a flow of controlling an instruction for specifying a file (when not copied to a volatile memory) to be read / written in the present invention. 本発明において、ファイルを読み込む流れを示す図である。In this invention, it is a figure which shows the flow which reads a file. 本発明において、ファイルを書き込む流れを示す図である。In this invention, it is a figure which shows the flow which writes a file. 本発明にかかるファイル制御プログラムの処理フローを示すフローチャートである。It is a flowchart which shows the processing flow of the file control program concerning this invention.

本発明を実施するための形態について、図面を用いて以下に詳細に説明する。尚、以下の説明は本発明の実施形態の一例を示したものであって、コンピュータやプログラムの構成、保護対象となるファイルが記憶される二次記憶装置の種別等については、以下に説明する実施形態に限定されるものではない。   Embodiments for carrying out the present invention will be described below in detail with reference to the drawings. The following description shows an example of the embodiment of the present invention. The configuration of the computer and the program, the type of the secondary storage device storing the file to be protected, and the like will be described below. It is not limited to the embodiment.

図1、図2は、本発明の実施形態の概要を示している。これらの図に示したように、本発明は、ユーザが操作するコンピュータのHDD等に記憶されたファイルや、ユーザが操作するコンピュータとネットワークを介して接続されたファイルサーバ等に記憶されたファイルのいずれも保護対象とすることが可能である。   1 and 2 show an outline of an embodiment of the present invention. As shown in these figures, the present invention can be applied to files stored in an HDD or the like of a computer operated by a user, or a file server or the like connected to a computer operated by a user via a network. Both can be protected.

図1は、本発明をスタンドアローンのコンピュータに用いる実施形態の概要を示している。この実施形態では、コンピュータのHDDに記憶されたファイルを保護対象としたい場合に、不揮発性のHDDに記憶された所定のファイルを指定してユーザが読み書きを行おうとすると、本発明に固有のAPI(アプリケーションプログラムインターフェース)の機能によって、読み書きの対象となるファイルが揮発性メモリであるRAMにコピーされたファイルに置き換えられる。そのため、HDDに記憶された保護対象となるファイルには書き込みが行われず、ファイルの改ざん等の不正行為を防止することができる。   FIG. 1 shows an overview of an embodiment in which the present invention is used in a stand-alone computer. In this embodiment, when a user wants to protect a file stored in the HDD of the computer and designates a predetermined file stored in the non-volatile HDD, when the user tries to read or write, an API unique to the present invention is obtained. By the function of (application program interface), a file to be read / written is replaced with a file copied to a RAM which is a volatile memory. For this reason, writing is not performed on the file to be protected stored in the HDD, and illegal acts such as falsification of the file can be prevented.

また、ここで読み書きを行ったファイルを他の二次記憶装置、例えばUSBメモリ等の外部記憶装置に書き出そうとした場合にも、本発明に固有のAPIの機能によって、ファイルを書き出す領域が揮発性メモリであるRAMに置き換えられるため、USBメモリ等へのファイルの書き出しは行われず、ファイルの持ち出し等の不正行為を防止することができる。   In addition, even when an attempt is made to write a file that has been read / written to another secondary storage device, for example, an external storage device such as a USB memory, an area for writing the file by an API function unique to the present invention. Since the volatile memory is replaced with the RAM, the file is not written to the USB memory or the like, and illegal actions such as taking out the file can be prevented.

尚、本発明では、アプリケーションプログラムによって行われる読み書きの対象となるファイルを特定する命令に対して、揮発性メモリに記憶されたファイル以外が指定されている場合には揮発性メモリへのコピーを実行し、読み書きの対象となるファイルを揮発性メモリにコピーされたファイルに置き換えるので、原則として揮発性メモリ以外の不揮発性の二次記憶装置に記憶されたファイルであれば、全てのファイルを保護対象にすることができる。そのため、上記の実施例とは逆に、USBメモリに記憶されたファイルを保護したい場合にも、USBメモリに記憶されたファイルに対する読み書きについてもRAMにコピーされたファイルに対する読み書きに置き換えられるため、USBメモリに記憶されたファイルに対する改ざんや、HDD等へ書き出すことによる持ち出し等の不正行為にも有効である。   Note that in the present invention, when a file other than a file stored in the volatile memory is specified for an instruction for specifying a file to be read / written performed by the application program, the copy to the volatile memory is executed. However, since the file to be read / written is replaced with the file copied to the volatile memory, in principle, all files can be protected if they are stored in a non-volatile secondary storage device other than the volatile memory. Can be. Therefore, contrary to the above embodiment, even when it is desired to protect a file stored in the USB memory, reading / writing with respect to the file stored in the USB memory is replaced with reading / writing with respect to the file copied to the RAM. It is also effective for tampering such as falsification of a file stored in a memory or taking out by writing to a HDD or the like.

図2は、本発明をファイルサーバとネットワークを介して接続されたコンピュータに用いる実施形態の概要を示している。この実施形態では、コンピュータとインターネットやLAN等のネットワークを介して接続されたファイルサーバのHDD等に記憶されたファイルを保護対象としており、ファイルサーバのHDD等に記憶された所定のファイルを指定してユーザが読み書きを行おうとすると、本発明に固有のAPIの機能によって読み書きの対象となるファイルが揮発性メモリであるRAMにコピーされたファイルに置き換えられるため、ファイルサーバのHDD等に記憶された保護対象となるファイルには書き込みが行われず、ファイルサーバ側にあるファイルの改ざん等の不正行為を防止することができる。   FIG. 2 shows an outline of an embodiment in which the present invention is applied to a computer connected to a file server via a network. In this embodiment, a file stored in an HDD of a file server connected to a computer via a network such as the Internet or a LAN is targeted for protection, and a predetermined file stored in the HDD of the file server is designated. When the user attempts to read / write, the file to be read / written is replaced with the file copied to the RAM, which is a volatile memory, by the API function unique to the present invention. The file to be protected is not written, and illegal acts such as falsification of the file on the file server side can be prevented.

また、ここで読み書きを行ったファイルを他の二次記憶装置、例えば、ユーザが操作するコンピュータのHDDやUSBメモリ等の外部記憶装置に書き出そうとした場合にも、本発明に固有のAPIの機能によって、ファイルを書き出す領域が揮発性メモリであるRAMに置き換えられるため、HDDやUSBメモリ等へのファイルの書き出しは行われず、ファイルの持ち出し等の不正行為を防止することができる。   Also, when an attempt is made to write the file read / written here to another secondary storage device, for example, an external storage device such as an HDD or USB memory of a computer operated by the user, an API unique to the present invention is also provided. With this function, the area in which the file is written is replaced with the RAM, which is a volatile memory. Therefore, the file is not written to the HDD, the USB memory, or the like, and illegal actions such as taking out the file can be prevented.

この実施形態においても先の実施形態と同様に、アプリケーションプログラムによって行われる読み書きの対象となるファイルを特定する命令に対して、揮発性メモリに記憶されたファイル以外が指定されている場合には揮発性メモリへのコピーを実行し、読み書きの対象となるファイルを揮発性メモリにコピーされたファイルに置き換えるので、ファイルサーバのHDD等に記憶されたファイルだけでなく、ユーザが操作するコンピュータのHDD等に記憶されたファイルもあわせて保護対象にすることができる。   In this embodiment, as in the previous embodiment, if a command other than the file stored in the volatile memory is specified for an instruction for specifying a file to be read / written performed by the application program, The file to be read / written is replaced with the file copied to the volatile memory, so that not only the file stored in the HDD of the file server but also the HDD of the computer operated by the user Files stored in can also be protected.

以上に説明したように、本発明では、例えば、個人情報が含まれている重要なファイルがコンピュータのHDDやファイルサーバに記憶されている場合に、ユーザがこのファイルにアクセスして読み書きを行おうとしても、読み書きをしたファイルは揮発性メモリであるRAMのみに記憶され、コンピュータの電源を落とすと消去されてしまうことになるので、ファイルの改ざんや持ち出しなどの不正行為を防止するのに効果的である。   As described above, according to the present invention, for example, when an important file containing personal information is stored in the HDD or file server of a computer, the user accesses this file and reads / writes it. However, the read / write file is stored only in the volatile memory RAM, and will be erased when the computer is turned off, so it is effective in preventing fraudulent acts such as tampering and taking out the file. It is.

図3は、本発明にかかるファイル制御装置(本発明にかかるファイル制御プログラムを備えたコンピュータ)の構成を示している。本発明にかかるファイル制御装置を構成するコンピュータ10には、CPU11、主記憶装置(メインメモリ)12、補助記憶装置(HDD)13が備えられている。また、コンピュータ10はキーボードやマウス等の入力装置15、ディスプレイやプリンタ等の出力装置16と接続され、USBメモリ等の外部記憶装置14を接続することもできる。   FIG. 3 shows the configuration of the file control apparatus (computer provided with the file control program according to the present invention) according to the present invention. A computer 10 constituting the file control apparatus according to the present invention includes a CPU 11, a main storage device (main memory) 12, and an auxiliary storage device (HDD) 13. The computer 10 is connected to an input device 15 such as a keyboard and a mouse, and an output device 16 such as a display and a printer, and can also be connected to an external storage device 14 such as a USB memory.

主記憶装置(メインメモリ)12は、RAM121とROM122を含んで構成されている。RAM121は揮発性メモリで、プログラムを読み出してCPU11が演算処理を行う際のワーキングエリアとして機能する。ROM122は読み出し専用のメモリで、入力制御や出力制御などのハードウェア制御のための基本的な各種プログラムが記憶されている。   The main storage device (main memory) 12 includes a RAM 121 and a ROM 122. The RAM 121 is a volatile memory, and functions as a working area when the CPU 11 performs a calculation process by reading a program. The ROM 122 is a read-only memory and stores various basic programs for hardware control such as input control and output control.

補助記憶装置(HDD)13には、OS(オペレーティングシステム)131、アプリケーションプログラム132、ドライバ133、API(アプリケーションプログラムインターフェース)134等のプログラムや、本発明において保護の対象となるファイル135等が記憶されている。また、本発明において保護の対象となるファイル141は、外部記憶装置14に記憶されていてもよい。あるいは、本発明において保護の対象となるファイル21は、コンピュータ10とインターネットやLAN等のネットワークを介して接続されたファイルサーバ20(ここではファイルサーバ20に備えられた揮発性メモリではなく、補助記憶措置等の不揮発性の二次記憶装置に記憶されたファイル21を対象にするものとする)に記憶されていてもよい。   The auxiliary storage device (HDD) 13 stores an OS (Operating System) 131, an application program 132, a driver 133, an API (Application Program Interface) 134, and a file 135 to be protected in the present invention. ing. In addition, the file 141 to be protected in the present invention may be stored in the external storage device 14. Alternatively, the file 21 to be protected in the present invention is a file server 20 connected to the computer 10 via a network such as the Internet or a LAN (in this case, not a volatile memory provided in the file server 20 but an auxiliary storage). The file 21 stored in the non-volatile secondary storage device such as a measure may be stored).

尚、補助記憶装置(HDD)13に記憶されたプログラムによって所定の処理を実行する際には、主記憶装置(メインメモリ)12のROM122に記憶された入力制御や出力制御などのハードウェア制御のための基本的な各種プログラムを起動し、RAM121をプログラムのワークエリアとして機能させながら、CPU11によって演算処理が行われることになる。   When predetermined processing is executed by a program stored in the auxiliary storage device (HDD) 13, hardware control such as input control and output control stored in the ROM 122 of the main storage device (main memory) 12 is performed. The CPU 11 performs arithmetic processing while starting up various basic programs and causing the RAM 121 to function as a program work area.

すなわち、図3の構成においてコンピュータ10が起動されると、OS131がRAM121に読み出されて、様々な処理が実行可能な状態となる。さらに、文書ファイル、表計算ファイルなどのファイルを読み書きしたい場合には、各々のファイルに対応するアプリケーションプログラム132がRAM121に読み出されてプログラムが起動されることによって、補助記憶装置13に記憶されたファイル135、外部記憶装置14に記憶されたファイル141、ファイルサーバ20に記憶されたファイル21等に対する読み書きが可能になる。アプリケーションプログラム132とOS131のデータの受け渡しの際には、API134がRAM121に読み出されて、アプリケーションプログラム132からOS131への所定の処理の要求等の処理が実行される。補助記憶装置13に記憶されたファイル135等に所定の操作を実行する際には、各々のハードウェアに対応するドライバ133がRAM121に読み出されて、ハードウェアに対する所定の処理が実行される。   That is, when the computer 10 is activated in the configuration of FIG. 3, the OS 131 is read into the RAM 121, and various processes can be executed. Further, when it is desired to read / write a file such as a document file or a spreadsheet file, the application program 132 corresponding to each file is read into the RAM 121 and the program is started to be stored in the auxiliary storage device 13. The file 135, the file 141 stored in the external storage device 14, the file 21 stored in the file server 20, and the like can be read and written. When transferring data between the application program 132 and the OS 131, the API 134 is read into the RAM 121, and processing such as a predetermined processing request from the application program 132 to the OS 131 is executed. When a predetermined operation is executed on the file 135 or the like stored in the auxiliary storage device 13, the driver 133 corresponding to each hardware is read into the RAM 121 and a predetermined process for the hardware is executed.

このような構成を前提にして、本発明にかかるファイル制御プログラムによってファイルの保護を実現するための動作について、図6〜図10と、図11のフローチャートを用いて説明する。尚、図6〜図10を用いて説明する、アプリケーションプログラム、API、OS(オペレーティングシステム)、ドライバによる動作は、それぞれアプリケーションプログラム132、OS131、API134、ドライバ133によって実行されるものである。   Based on such a configuration, an operation for realizing file protection by the file control program according to the present invention will be described with reference to FIGS. 6 to 10 and a flowchart of FIG. The operations performed by the application program, API, OS (operating system), and driver described with reference to FIGS. 6 to 10 are executed by the application program 132, OS 131, API 134, and driver 133, respectively.

本発明の動作について説明する前に、アプリケーションプログラムによって読み書きの対象となるファイルを特定し、ファイルへの読み書きを実行する動作について、通常の処理の流れを図4、図5を用いて説明する。   Before describing the operation of the present invention, the normal process flow will be described with reference to FIGS. 4 and 5 for the operation of specifying a file to be read / written by an application program and executing the read / write to the file.

図4は、アプリケーションプログラムによって読み書きの対象となるファイルを特定する動作の通常の流れを示したものである。コンピュータでOS、アプリケーションプログラムが起動された状態において、ユーザがアプリケーションプログラムによってあるファイルを指定して読み書きを行いたい場合には、ファイルの読み込みの命令(read(ファイルパス)等)やファイルの書き込みの命令(write(ファイルパス)等)の前に、読み書きの対象となるファイルを特定する命令(open(ファイルパス)、create(ファイルパス)等)が行われる。   FIG. 4 shows a normal flow of operations for specifying a file to be read / written by an application program. When the user wants to read and write a specified file by the application program while the OS and application program are running on the computer, the file read command (read (file path) etc.) and the file write Before an instruction (write (file path) or the like), an instruction (open (file path), create (file path) or the like) for specifying a file to be read / written is performed.

この命令には、対象となるファイルのファイルパス(ファイルを識別できる情報であればよいが、一般に記憶装置に記憶されたファイルは、ファイルが記憶された領域を示すパスとファイル名によって識別される)が指定されていて(図4の例であれば、補助記憶装置であるDドライブに記憶されたファイルのファイルパスが指定される)、ファイルの特定に対応するAPIが呼び出されて、指定されたファイルに対するfd(ファイルディスクリプタ=ファイル記述子、ファイルハンドルも同じ)の生成をOSに要求する。OSはドライバを呼び出して指定されたファイルの所在を確認するとともに、以後の命令においてファイルを特定するために用いられるfdを生成する。ここで生成されたfdが、読み書きの対象となるファイルを特定する命令に対する戻り値として、APIからアプリケーションプログラムに返される。   In this command, the file path of the target file (information that can identify the file may be used, but in general, the file stored in the storage device is identified by the path indicating the area in which the file is stored and the file name. ) Is specified (in the example of FIG. 4, the file path of the file stored in the D drive which is the auxiliary storage device is specified), and the API corresponding to the file specification is called and specified. The OS is requested to generate fd (file descriptor = file descriptor, file handle is the same) for the file. The OS calls the driver to confirm the location of the designated file, and generates fd used to specify the file in subsequent commands. The fd generated here is returned from the API to the application program as a return value for an instruction for specifying a file to be read / written.

図5は、アプリケーションプログラムによってファイルの読み書きを実行する動作の通常の流れを示したものである。左側が読み込み、右側が書き込みの流れを示したものであるが、ファイルの読み込み(read等)、ファイルの書き込み(write等)のいずれの命令においても、読み書きの対象となるファイルについてはファイルパスが指定されるのではなく、先にAPIから返されたfdを各々の命令に指定することによって、対象となるファイルが特定される。   FIG. 5 shows a normal flow of operations for reading and writing files by an application program. The left side shows the flow of reading, and the right side shows the flow of writing. However, the file path for the file to be read / written is the same for both the file reading (read etc.) and file writing (write etc.) commands. Instead of being specified, the target file is specified by specifying the fd previously returned from the API in each command.

すなわち、OSでは、先に読み書きの対象となるファイルを特定する命令を処理した際に、対象となるファイルのファイルパスと、このファイルに対して生成したfdの関連付けを保持しておき、読み込みの際にはread(fd)等の命令に指定されたfdに対応するファイルパスから特定されるファイルを、アプリケーションプログラムに読み込ませる。書き込みの際にはwrite(fd)等の命令に指定されたfdに対応するファイルパスから特定されるファイルに対して、アプリケーションプログラムに入力したデータ等を書き込ませる。   In other words, when the OS first processes an instruction for specifying a file to be read / written, the OS retains the association between the file path of the target file and the fd generated for this file, and In this case, a file specified from a file path corresponding to fd designated by an instruction such as read (fd) is read by the application program. At the time of writing, data input to the application program is written to a file specified from a file path corresponding to fd specified in an instruction such as write (fd).

尚、アプリケーションプログラムによってファイルの読み書きを実行する場合には、1回の命令によって処理できるデータ量が制限されていることが多いため、1つのファイルに対する読み書きを実行する場合には、fdを指定した読み込みや書き込みの命令が複数回に分けて行われることになるのが通常である。   Note that when reading / writing a file by an application program, the amount of data that can be processed by a single instruction is often limited, so fd is specified when reading / writing one file. Usually, read and write instructions are performed in multiple steps.

このように、ファイルに対する読み書きの命令は、読み書きの対象となるファイルを特定する命令によって生成されたfdを指定して実行されるが、本発明にかかるファイル制御プログラムでは、以下に説明するように、アプリケーションプログラムによって読み書きの対象となるファイルを特定する段階においてファイルを制御することによって、ファイルへの読み書きを実行する際にファイルが保護されることとなっている。   As described above, the read / write command for the file is executed by specifying the fd generated by the command for specifying the file to be read / written. In the file control program according to the present invention, as described below, By controlling the file at the stage of specifying the file to be read / written by the application program, the file is protected when the file is read / written.

図6〜図8は、本発明において、読み書きの対象となるファイルを特定する命令を制御する流れを示したもので、その処理フローをまとめたものが、図11のフローチャートである。   6 to 8 show a flow of controlling an instruction for specifying a file to be read / written in the present invention. The processing flow is summarized in the flowchart of FIG.

コンピュータのユーザは、文書作成、表計算などのアプリケーションプログラムを起動して、読み書きを行いたいファイルを指定して「ファイルを開く」、「ファイルを保存する」等の操作を行う。このような操作を受け付けると、アプリケーションプログラムは対応するAPIを呼び出して、APIからOSに対して必要な処理が要求される。   A computer user activates an application program such as document creation or spreadsheet, specifies a file to be read / written, and performs operations such as “open file” and “save file”. When such an operation is accepted, the application program calls the corresponding API, and a required process is requested from the API to the OS.

ここで、アプリケーションプログラムからファイルに対する読み込みや書き込みの命令が行われる前には、先に説明したとおり、アプリケーションプログラムからAPIに対して、読み書きの対象となるファイルを特定する命令(open(ファイルパス)、create(ファイルパス)等)が行われる(図11のS1)。図6〜図8に示した例では、補助記憶装置のDドライブに記憶されたファイルのファイルパスを指定して、読み書きの対象となるファイルを特定する命令が行われている。   Here, before a read / write command for a file is issued from the application program, as described above, a command for specifying a file to be read / written from the application program to the API (open (file path)) , Create (file path), etc.) are performed (S1 in FIG. 11). In the example shown in FIGS. 6 to 8, an instruction for specifying a file to be read / written is specified by specifying a file path of a file stored in the D drive of the auxiliary storage device.

通常は、この命令がそのままAPIからOSに引き渡されるが、本発明において用いられるAPIでは、ここで命令に指定されたファイルが揮発性メモリである主記憶装置の揮発性メモリ(RAM)に記憶されたファイルか、それとも不揮発性の二次記憶装置(補助記憶装置、外部記憶装置、ファイルサーバの補助記憶装置等を含む)に記憶されたファイルかを判断する。尚、以下において、揮発性メモリには主記憶装置のRAMが用いられる例について説明するが、本発明における揮発性メモリは主記憶装置のRAMに限定されるものではなく、電源が落とされた後にデータが消去される揮発性のメモリであれば、主記憶装置以外を構成するものであってもよい。   Normally, this command is directly transferred from the API to the OS. However, in the API used in the present invention, the file specified in the command is stored in the volatile memory (RAM) of the main storage device which is a volatile memory. Whether the file is stored in a non-volatile secondary storage device (including an auxiliary storage device, an external storage device, or an auxiliary storage device of a file server). In the following, an example in which the RAM of the main storage device is used as the volatile memory will be described. However, the volatile memory in the present invention is not limited to the RAM of the main storage device, and after the power is turned off. As long as it is a volatile memory from which data is erased, a memory other than the main storage device may be configured.

この判断を行うための方法は特に限定されるものではないが、例えば、主記憶装置の揮発性メモリに記憶されたファイルを取扱リストとして主記憶装置の揮発性メモリに記憶させておいて、この取扱リストを参照し(図11のS2)、読み書きの対象となるファイルを特定する命令に指定されたファイルが取扱リストに含まれているかどうかを確認することによって(図11のS3)、指定されたファイルが揮発性メモリに記憶されたものかどうかを判断することができる。また、読み書きの対象となるファイルを特定する命令に指定されたファイルパスからファイルの記憶されたドライブを特定し、そのドライブが主記憶装置の揮発性メモリ(この例ではRドライブ)に対応するものであるかどうかを判断することとしてもよい。   A method for making this determination is not particularly limited. For example, files stored in the volatile memory of the main storage device are stored in the volatile memory of the main storage device as a handling list. By referring to the handling list (S2 in FIG. 11) and confirming whether or not the file specified in the instruction specifying the file to be read / written is included in the handling list (S3 in FIG. 11), the designated list is specified. It can be determined whether the file stored in volatile memory. In addition, the drive storing the file is specified from the file path specified in the instruction for specifying the file to be read / written, and the drive corresponds to the volatile memory (R drive in this example) of the main storage device. It is good also as judging whether it is.

ここで指定されたファイルが主記憶装置の揮発性メモリに記憶されていると判断された場合は、図6の例に示したように、APIはOSに対して、主記憶装置の揮発性メモリに記憶されたファイル(Dドライブのファイル)に対してfdを生成するように要求する(図11のS7)。この要求を受けたOSは、対応するドライバを読み出し、主記憶装置の揮発性メモリにおいて指定されたファイルを確認して、このファイルを特定するfdを生成する。APIは生成されたfdをOSから受け取って(図11のS8)、アプリケーションプログラムに戻り値として生成されたfdを返す(図11のS9)。   If it is determined that the file specified here is stored in the volatile memory of the main storage device, as shown in the example of FIG. 6, the API notifies the OS of the volatile memory of the main storage device. Is requested to generate fd for the file stored in (D drive file) (S7 in FIG. 11). Upon receiving this request, the OS reads the corresponding driver, checks the specified file in the volatile memory of the main storage device, and generates fd for specifying this file. The API receives the generated fd from the OS (S8 in FIG. 11), and returns the generated fd as a return value to the application program (S9 in FIG. 11).

一方、指定されたファイルが主記憶装置の揮発性メモリに記憶されておらず、不揮発性の二次記憶装置に記憶されていると判断された場合は、図7の例に示したように(この例では指定されたファイルがDドライブの補助記憶装置に記憶されているとする)、APIはOSに対して、指定されたファイルを主記憶装置の揮発性メモリにコピーするよう要求する(図11のS4)。   On the other hand, when it is determined that the designated file is not stored in the volatile memory of the main storage device but is stored in the non-volatile secondary storage device, as shown in the example of FIG. In this example, it is assumed that the specified file is stored in the auxiliary storage device of the D drive), and the API requests the OS to copy the specified file to the volatile memory of the main storage device (see FIG. 11 S4).

この要求を受けたOSは、ファイルを補助記憶装置(Dドライブ)から主記憶装置の揮発性メモリ(Rドライブ)にコピーする処理を実行する。APIはコピーされたファイルのファイルパス(Rドライブのファイルパス)をOSから受け取って(図11のS5)、揮発性メモリの取扱リストにファイルを特定する命令に指定されたファイルのファイルパス(Dドライブのファイルパス)と関連付けて記憶させる(図11のS6)。   Upon receiving this request, the OS executes a process of copying the file from the auxiliary storage device (D drive) to the volatile memory (R drive) of the main storage device. The API receives the file path of the copied file (file path of the R drive) from the OS (S5 in FIG. 11), and the file path (D of the file specified in the command specifying the file in the handling list of the volatile memory) The file path is stored in association with the file path of the drive (S6 in FIG. 11).

続いて、図8の例に示したように、APIはOSに対して、主記憶装置の揮発性メモリにコピーされたファイル(Rドライブのファイル)に対してfdを生成するように要求する(図11のS7)。この要求を受けたOSは、対応するドライバを読み出し、主記憶装置の揮発性メモリにおいて指定されたファイルを確認して、このファイルを特定するfdを生成する。APIは生成されたfdをOSから受け取って(図11のS8)、アプリケーションプログラムに戻り値として生成されたfdを返す(図11のS9)。   Subsequently, as shown in the example of FIG. 8, the API requests the OS to generate fd for the file copied to the volatile memory of the main storage device (file of the R drive) ( S7 in FIG. Upon receiving this request, the OS reads the corresponding driver, checks the specified file in the volatile memory of the main storage device, and generates fd for specifying this file. The API receives the generated fd from the OS (S8 in FIG. 11), and returns the generated fd as a return value to the application program (S9 in FIG. 11).

以上に説明した動作によって、ファイルを特定する命令に指定されたファイルが主記憶装置の揮発性メモリに記憶されていると判断された場合、ファイルを特定する命令に指定されたファイルが主記憶装置の揮発性メモリに記憶されておらず、不揮発性の二次記憶装置に記憶されていると判断された場合のいずれにおいても、ファイルを特定する命令を行ったアプリケーションプログラムには、必ず揮発性メモリに記憶されたファイルに対して生成されたfdが返されることになる。ファイルに対する読み込みや書き込みの命令は、このfdを指定して行われることになるので、アプリケーションプログラムによって実行されるファイルに対する読み書きは、揮発性メモリに記憶されたファイルに対してしか行われない。   When it is determined by the operation described above that the file specified in the command specifying the file is stored in the volatile memory of the main storage device, the file specified in the command specifying the file is the main storage device. In any case where it is determined that the file is stored in a non-volatile secondary storage device, the volatile memory is always included in the application program that issued the file specifying instruction. The fd generated for the file stored in is returned. Since reading and writing commands to the file are performed by specifying this fd, reading and writing to the file executed by the application program is performed only for the file stored in the volatile memory.

すなわち、読み込みの命令(read(fd)等)であれば、図9に例示したように、必ず揮発性メモリに記憶されたファイルのfdが指定されることになるので、読み出されるファイルは揮発性メモリに記憶されたファイルとなる。また、書き込みの命令(write(fd)等)であれば、図10に例示したように、必ず主記憶装置の揮発性メモリに記憶されたファイルのfdが指定されることになるので、書き込みの対象となるファイルは主記憶装置の揮発性メモリに記憶されたファイルとなり、補助記憶装置に記憶されたファイルに書き込みが行われることはなく、書き込んだファイルは電源を落とすと自動的に消去されることになる。   That is, if it is a read command (read (fd) or the like), as illustrated in FIG. 9, the fd of the file stored in the volatile memory is always specified, so the read file is volatile. The file is stored in memory. Further, if it is a write command (write (fd) or the like), as illustrated in FIG. 10, the fd of the file stored in the volatile memory of the main storage device is always specified. The target file is a file stored in the volatile memory of the main storage device, and the file stored in the auxiliary storage device is not written, and the written file is automatically deleted when the power is turned off. It will be.

このことは、主記憶装置の揮発性メモリに記憶されたファイルを、補助記憶装置等の二次記憶装置に書き出そうとした場合も同様である。主記憶装置の揮発性メモリ(Rドライブ)から補助記憶装置(Dドライブ)へのコピーを実行しようとすると、このコピーを実行する命令の前にも書き込みを行うファイルを特定する命令が行われ、既存のファイルへの上書きではなく新規にファイルを作成する場合であれば、作成するファイル(0バイトのファイル)に対してfdが生成される。このときに、図6に示したのと同様の動作によって、新規のファイルを主記憶装置の揮発性メモリ(Rドライブ)上のファイルとしてfdが生成されるので、コピーするファイルも主記憶装置の揮発性メモリ(Rドライブ)にしか書き込むことができない。   The same is true when an attempt is made to write a file stored in the volatile memory of the main storage device to a secondary storage device such as an auxiliary storage device. When a copy from the volatile memory (R drive) of the main storage device to the auxiliary storage device (D drive) is to be executed, an instruction for specifying a file to be written is executed before the instruction to execute the copy, If a new file is created instead of overwriting an existing file, fd is generated for the file to be created (0-byte file). At this time, fd is generated as a new file on the volatile memory (R drive) of the main storage device by the same operation as shown in FIG. 6, so that the file to be copied is also stored in the main storage device. It can only write to volatile memory (R drive).

以上のように、本発明によると、補助記憶装置やUSBメモリ、ネットワークで接続されたファイルサーバの補助記憶装置等の二次記憶装置に記憶されたファイルに対して、ファイルを上書きすることによる改ざんや、ファイルを他の二次記憶装置に書き出すことによる持ち出しが不可能となり、個人情報等の重要な情報が記録されたファイルの保護に好適である。   As described above, according to the present invention, falsification is achieved by overwriting a file stored in a secondary storage device such as an auxiliary storage device, a USB memory, or an auxiliary storage device of a file server connected via a network. In addition, the file cannot be taken out by writing it to another secondary storage device, which is suitable for protecting a file in which important information such as personal information is recorded.

また、先に説明したとおり、ファイルを特定する命令の後に行われるファイルの読み込みや書き込みの命令は、1つのファイルに対して複数回に分けて行われるのが通常であるが、従来技術では、この読み込みや書き込みの命令に対して二次記憶装置への読み書きを制御するところ、本発明ではファイルを特定する命令に対するfd生成の段階において、読み書きの対象となるfdを揮発性メモリ上のファイルのみに制限することによって二次記憶装置への読み書きを制御する。そのため、読み書きの命令の度に制御に必要な判断を行うことを要しなくなるため、コンピュータにかかる負荷を軽減し、パフォーマンスを向上させるのに有効である。   In addition, as described above, the file read and write commands that are performed after the file specifying command are normally performed in multiple times for one file. When reading / writing to the secondary storage device is controlled in response to the read / write instruction, in the present invention, in the fd generation stage for the instruction specifying the file, the fd to be read / written is only the file on the volatile memory. Control reading and writing to the secondary storage device by limiting to For this reason, it is not necessary to make a judgment necessary for control for each read / write instruction, which is effective in reducing the load on the computer and improving the performance.

さらに、本発明では、APIにおいてfdの生成を制御することで、二次記憶装置への読み書きを制御するので、各々のハードウェアに対応するドライバ毎に設定を行う必要がない。そのため、ハードウェアに依存することなく読み書きを制御できるという点でも、有効なものである。   Furthermore, in the present invention, since reading and writing to the secondary storage device is controlled by controlling the generation of fd in the API, it is not necessary to make settings for each driver corresponding to each hardware. Therefore, it is also effective in that reading and writing can be controlled without depending on hardware.

尚、本発明では、上記のとおり二次記憶装置への読み書きの制御をAPIにおいて実行することとしているが、このような機能を備えた本発明に固有のAPIを既存のAPIと置き換えることとしてもよいし、図4、図5で説明したような既存のAPIを利用しながら、本発明に固有のAPIがアプリケーションからのファイルを特定する命令を検出し、それぞれ既存のAPIを介してOSにこれまで説明した要求を行うことによって、同様の機能を実現することとしてもよい。   In the present invention, the read / write control to the secondary storage device is executed in the API as described above. However, the API unique to the present invention having such a function may be replaced with the existing API. In addition, while using the existing API as described with reference to FIGS. 4 and 5, the API specific to the present invention detects an instruction for specifying a file from the application, and this is detected by the OS via the existing API. The same function may be realized by making the request described above.

後者の場合、図6や図8の流れでは、ファイルを特定する命令に指定されたファイルが主記憶装置の揮発性メモリに記憶されていることが確認されれば、既存のAPIを呼び出してOSに対してfdの生成を要求させればよい。図7の流れでは、ファイルのコピーをOSに要求するための既存のAPIを呼び出して、OSに対して指定されたファイルを主記憶装置の揮発性メモリにコピーするよう要求させればよい。   In the latter case, in the flow of FIG. 6 or FIG. 8, if it is confirmed that the file specified in the command for specifying the file is stored in the volatile memory of the main storage device, the existing API is called to May be requested to generate fd. In the flow of FIG. 7, an existing API for requesting the OS to copy a file may be called to request the OS to copy the specified file to the volatile memory of the main storage device.

また、これまでに説明した方法によると、補助記憶装置等の二次記憶装置に記憶された全てのファイルが保護対象となるが、保護対象を二次記憶装置に記憶された一部のファイルに制限することも可能である。この場合、保護対象から除外されるファイルの記憶領域をコンピュータにあらかじめ記憶させておき、ファイルを特定する命令に指定されたファイルが主記憶装置の揮発性メモリに記憶されていることが確認する際に、あわせて指定されたファイルが保護対象から除外されるファイルの記憶領域に記憶されたものでないかを確認する。   In addition, according to the methods described so far, all files stored in the secondary storage device such as the auxiliary storage device become the protection target, but the protection target is changed to a part of the files stored in the secondary storage device. It is also possible to limit. In this case, when the storage area of the file to be excluded from the protection target is stored in the computer in advance, and it is confirmed that the file specified in the command for specifying the file is stored in the volatile memory of the main storage device In addition, it is confirmed whether the specified file is not stored in the storage area of the file to be excluded from protection.

ここで、指定されたファイルが主記憶装置の揮発性メモリに記憶されておらず、不揮発性の二次記憶装置に記憶されていると判断されても、保護対象から除外されるファイルの記憶領域に記憶されたものである場合には、ファイルを主記憶装置の揮発性メモリにコピーする処理を実行することなく、そのまま二次記憶装置に記憶されたファイルに対するfdを生成するようにOSに要求することとすれば、このファイルに対しては二次記憶装置に記憶されたものであっても読み書きが可能になるので、保護対象から除外することができる。   Here, even if it is determined that the specified file is not stored in the volatile memory of the main storage device but is stored in the non-volatile secondary storage device, the storage area of the file excluded from the protection target If the file is stored in the storage device, the OS is requested to generate fd for the file stored in the secondary storage device without executing the process of copying the file to the volatile memory of the main storage device. If this is done, the file can be read and written even if it is stored in the secondary storage device, and can be excluded from the protection target.

10 コンピュータ
11 CPU
12 主記憶装置(メインメモリ)
13 補助記憶装置(HDD)
131 OS
132 アプリケーションプログラム
133 ドライバ
134 API
135 ファイル
14 外部記憶装置
141 ファイル
15 入力装置
16 出力装置
20 ファイルサーバ
21 ファイル
10 Computer 11 CPU
12 Main memory (main memory)
13 Auxiliary storage device (HDD)
131 OS
132 Application program 133 Driver 134 API
135 File 14 External Storage Device 141 File 15 Input Device 16 Output Device 20 File Server 21 File

Claims (6)

ファイルに対する読み書きの操作を制御するためのファイル制御プログラムであって、コンピュータに、
アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令を検出するファイル特定命令検出ステップと、
前記ファイル特定命令検出ステップで検出された命令により特定されるファイルが、前記コンピュータの揮発性メモリに記憶されたファイルであるかを判断するファイル記憶領域判断ステップと、
前記ファイル記憶領域判断ステップでファイルリストに含まれると判断された場合には、前記コンピュータのオペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリに記憶されたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第1のファイルディスクリプタ要求ステップと、
前記ファイル記憶領域判断ステップでファイルリストに含まれないと判断された場合には、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルを前記揮発性メモリにコピーすることを要求するコピー要求ステップと、
前記コピー要求ステップで要求したファイルが前記揮発性メモリにコピーされると、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリにコピーされたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第2のファイルディスクリプタ要求ステップと、
前記アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令に対する戻り値として、前記第1のファイルディスクリプタ要求ステップ、又は前記第2のファイルディスクリプタ要求ステップでのファイルディスクリプタの生成要求に対して前記オペレーティングシステムが生成したファイルディスクリプタを返すファイルディスクリプタ応答ステップと、
を実行させることを特徴とするファイル制御プログラム。
A file control program for controlling read / write operations on a file.
A file specifying instruction detecting step for detecting an instruction specifying a file to be read / written requested by an application program;
A file storage area determining step for determining whether a file specified by the instruction detected in the file specifying instruction detecting step is a file stored in a volatile memory of the computer;
When it is determined in the file storage area determining step that it is included in the file list, it is used for reading / writing the file stored in the volatile memory in the operating system of the computer or the application program interface of the operating system. A first file descriptor request step for requesting generation of the file descriptor;
When it is determined that the file storage area is not included in the file list in the file storage area determination step, the file is specified by the instruction detected in the file specification instruction detection step in the operating system or the application program interface of the operating system. A copy requesting step requesting copying a file to the volatile memory;
When the file requested in the copy requesting step is copied to the volatile memory, a file descriptor used for reading / writing the file copied to the volatile memory to the operating system or an application program interface of the operating system. A second file descriptor request step for requesting generation of
As a return value for an instruction specifying a file to be read / written requested from the application program, in response to a file descriptor generation request in the first file descriptor request step or the second file descriptor request step A file descriptor response step for returning a file descriptor generated by the operating system;
A file control program for executing
前記コンピュータに、
前記コピー要求ステップで要求したファイルが前記揮発性メモリにコピーされると、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルの識別情報と、前記揮発性メモリにコピーされたファイルの識別情報を関連付けて、前記揮発性メモリにファイルリストとして記憶させるファイルリスト書込ステップを実行させ、
前記ファイル記憶領域判断ステップでは、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルが前記ファイルリストに含まれるかによって、前記コンピュータの揮発性メモリに記憶されたファイルであるかを判断すること
を特徴とする請求項1記載のファイル制御プログラム。
In the computer,
When the file requested in the copy requesting step is copied to the volatile memory, the identification information of the file specified by the instruction detected in the file specifying instruction detecting step and the file copied to the volatile memory A step of writing a file list in which identification information is associated and stored in the volatile memory as a file list;
In the file storage area determining step, it is determined whether the file specified by the instruction detected in the file specifying instruction detecting step is a file stored in the volatile memory of the computer, depending on whether the file is included in the file list. The file control program according to claim 1, wherein:
前記ファイル特定命令検出ステップで検出された命令により特定されるファイルは、前記揮発性メモリ、又は不揮発性の二次記憶装置に記憶されたファイルであり、
前記コピー要求ステップでは、前記二次記憶装置から読み出したファイルの前記揮発性メモリへのコピーを要求し、
前記二次記憶装置には、前記コンピュータ内にある補助記憶装置、前記コンピュータに接続された外部記憶装置、前記コンピュータとネットワークを通じて接続されたコンピュータ内にある補助記憶装置が含まれること
を特徴とする請求項1又は2記載のファイル制御プログラム。
The file specified by the instruction detected in the file specifying instruction detection step is a file stored in the volatile memory or a non-volatile secondary storage device,
In the copy request step, a request is made to copy the file read from the secondary storage device to the volatile memory;
The secondary storage device includes an auxiliary storage device in the computer, an external storage device connected to the computer, and an auxiliary storage device in a computer connected to the computer through a network. The file control program according to claim 1 or 2.
前記コンピュータに、
前記ファイル特定命令検出ステップで検出された命令により特定されるファイルが、不揮発性の二次記憶装置においてあらかじめ定められた記憶領域に記憶されたファイルかを判断する記憶領域判断ステップと、
前記記憶領域判断ステップであらかじめ定められた記憶領域に記憶されたファイルと判断された場合には、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記記憶領域に記憶されたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第3のファイルディスクリプタ要求ステップと、
前記アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令に対する戻り値として、前記第3のファイルディスクリプタ要求ステップでのファイルディスクリプタの生成要求に対して前記オペレーティングシステムが生成したファイルディスクリプタを返すステップと、を実行させ、
前記記憶領域判断ステップであらかじめ定められた記憶領域に記憶されたファイルと判断された場合には、前記ファイル記憶領域判断ステップを実行しない、又は、前記ファイル記憶領域判断ステップを実行してファイルリストに含まれないと判断された場合であっても、前記コピー要求ステップを実行しないこと
を特徴とする請求項1乃至3いずれかに記載のファイル制御プログラム。
In the computer,
A storage area determination step for determining whether a file specified by the instruction detected in the file specification instruction detection step is a file stored in a predetermined storage area in a nonvolatile secondary storage device;
When it is determined that the file is stored in a predetermined storage area in the storage area determination step, the file stored in the storage area is read / written to the operating system or the application program interface of the operating system. A third file descriptor requesting step for requesting generation of a file descriptor for use;
A file descriptor generated by the operating system in response to a file descriptor generation request in the third file descriptor request step is returned as a return value for an instruction for specifying a file to be read / written requested from the application program. Step, and
If it is determined in the storage area determination step that the file is stored in a predetermined storage area, the file storage area determination step is not executed, or the file storage area determination step is executed and the file list is displayed. The file control program according to any one of claims 1 to 3, wherein the copy request step is not executed even if it is determined not to be included.
ファイルに対する読み書きの操作を制御するためのファイル制御装置であって、
アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令を検出するファイル特定命令検出手段と、
前記ファイル特定命令検出手段が検出した命令により特定されるファイルが、前記コンピュータの揮発性メモリに記憶されたファイルであるかを判断するファイル記憶領域判断手段と、
前記ファイル記憶領域判断手段においてファイルリストに含まれると判断された場合には、前記コンピュータのオペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリに記憶されたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第1のファイルディスクリプタ要求手段と、
前記ファイル記憶領域判断手段においてファイルリストに含まれないと判断された場合には、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルを前記揮発性メモリにコピーすることを要求するコピー要求手段と、
前記コピー要求手段が要求したファイルが前記揮発性メモリにコピーされると、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリにコピーされたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第2のファイルディスクリプタ要求手段と、
前記アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令に対する戻り値として、前記第1のファイルディスクリプタ要求手段、又は前記第2のファイルディスクリプタ要求手段によるファイルディスクリプタの生成要求に対して前記オペレーティングシステムが生成したファイルディスクリプタを返すファイルディスクリプタ応答手段と、
を備えることを特徴とするファイル制御装置。
A file control device for controlling a read / write operation on a file,
A file specifying instruction detecting means for detecting an instruction for specifying a file to be read / written requested by an application program;
File storage area determining means for determining whether the file specified by the instruction detected by the file specifying instruction detecting means is a file stored in the volatile memory of the computer;
When the file storage area determining means determines that the file is included in the file list, it is used for reading / writing the file stored in the volatile memory in the operating system of the computer or the application program interface of the operating system. First file descriptor request means for requesting generation of the file descriptor;
If the file storage area determination means determines that the file list is not included in the file list, the file storage area determination unit specifies the operating system or an application program interface of the operating system according to the instruction detected in the file specifying instruction detection step. Copy request means for requesting copying a file to the volatile memory;
When the file requested by the copy requesting unit is copied to the volatile memory, a file descriptor used for reading / writing the file copied to the volatile memory to the operating system or an application program interface of the operating system. Second file descriptor request means for requesting generation of
As a return value for an instruction for specifying a file to be read / written requested from the application program, in response to a file descriptor generation request by the first file descriptor request unit or the second file descriptor request unit, A file descriptor response means for returning a file descriptor generated by the operating system;
A file control apparatus comprising:
ファイルに対する読み書きの操作を制御するためのファイル制御方法であって、
コンピュータが、アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令を検出するファイル特定命令検出ステップと、
前記コンピュータが、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルが、前記コンピュータの揮発性メモリに記憶されたファイルであるかを判断するファイル記憶領域判断ステップと、
前記コンピュータが、前記ファイル記憶領域判断ステップでファイルリストに含まれると判断された場合には、前記コンピュータのオペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリに記憶されたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第1のファイルディスクリプタ要求ステップと、
前記コンピュータが、前記ファイル記憶領域判断ステップでファイルリストに含まれないと判断された場合には、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記ファイル特定命令検出ステップで検出された命令により特定されるファイルを前記揮発性メモリにコピーすることを要求するコピー要求ステップと、
前記コンピュータが、前記コピー要求ステップで要求したファイルが前記揮発性メモリにコピーされると、前記オペレーティングシステム、又は前記オペレーティングシステムのアプリケーションプログラムインターフェースに、前記揮発性メモリにコピーされたファイルに対する読み書きに用いるためのファイルディスクリプタの生成を要求する第2のファイルディスクリプタ要求ステップと、
前記コンピュータが、前記アプリケーションプログラムから要求された読み書きの対象となるファイルを特定する命令に対する戻り値として、前記第1のファイルディスクリプタ要求ステップ、又は前記第2のファイルディスクリプタ要求ステップでのファイルディスクリプタの生成要求に対して前記オペレーティングシステムが生成したファイルディスクリプタを返すファイルディスクリプタ応答ステップと、
を有することを特徴とするファイル制御方法。
A file control method for controlling a read / write operation on a file,
A file specifying instruction detecting step in which a computer detects an instruction specifying a file to be read / written requested by an application program;
A file storage area determining step in which the computer determines whether the file specified by the instruction detected in the file specifying instruction detecting step is a file stored in a volatile memory of the computer;
When it is determined that the computer is included in the file list in the file storage area determination step, the computer stores the file stored in the volatile memory in the operating system of the computer or the application program interface of the operating system. A first file descriptor request step for requesting generation of a file descriptor for use in reading and writing;
When the computer determines that the file storage area is not included in the file list in the file storage area determination step, the instruction detected in the file specific instruction detection step in the operating system or an application program interface of the operating system A copy request step for requesting to copy the file specified by the volatile memory;
When the file requested in the copy requesting step is copied to the volatile memory, the computer uses the operating system or an application program interface of the operating system to read / write the file copied to the volatile memory. A second file descriptor request step for requesting generation of a file descriptor for
Generation of a file descriptor in the first file descriptor request step or the second file descriptor request step as a return value for an instruction for specifying a file to be read / written requested by the application program from the computer A file descriptor response step for returning a file descriptor generated by the operating system in response to the request;
A file control method characterized by comprising:
JP2010010446A 2010-01-20 2010-01-20 File control program, file control apparatus, and file control method Expired - Fee Related JP5435642B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010010446A JP5435642B2 (en) 2010-01-20 2010-01-20 File control program, file control apparatus, and file control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010010446A JP5435642B2 (en) 2010-01-20 2010-01-20 File control program, file control apparatus, and file control method

Publications (2)

Publication Number Publication Date
JP2011150490A true JP2011150490A (en) 2011-08-04
JP5435642B2 JP5435642B2 (en) 2014-03-05

Family

ID=44537410

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010010446A Expired - Fee Related JP5435642B2 (en) 2010-01-20 2010-01-20 File control program, file control apparatus, and file control method

Country Status (1)

Country Link
JP (1) JP5435642B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012128536A (en) * 2010-12-13 2012-07-05 Internatl Business Mach Corp <Ibm> Data protection processing program
JP2016218606A (en) * 2015-05-18 2016-12-22 日本電信電話株式会社 Log management method and log management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005258926A (en) * 2004-03-12 2005-09-22 Ntt Comware Corp File access controller, file access control method and file access control program
JP2006217633A (en) * 2006-02-07 2006-08-17 Hitachi Ltd Content processor
JP2008276456A (en) * 2007-04-27 2008-11-13 Hitachi Software Eng Co Ltd File management system and method, and mobile terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005258926A (en) * 2004-03-12 2005-09-22 Ntt Comware Corp File access controller, file access control method and file access control program
JP2006217633A (en) * 2006-02-07 2006-08-17 Hitachi Ltd Content processor
JP2008276456A (en) * 2007-04-27 2008-11-13 Hitachi Software Eng Co Ltd File management system and method, and mobile terminal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012128536A (en) * 2010-12-13 2012-07-05 Internatl Business Mach Corp <Ibm> Data protection processing program
US8966158B2 (en) 2010-12-13 2015-02-24 International Business Machines Corporation Data protection technique that protects illicit copying of data maintained in data storage
JP2016218606A (en) * 2015-05-18 2016-12-22 日本電信電話株式会社 Log management method and log management system

Also Published As

Publication number Publication date
JP5435642B2 (en) 2014-03-05

Similar Documents

Publication Publication Date Title
JP4287485B2 (en) Information processing apparatus and method, computer-readable recording medium, and external storage medium
TWI328182B (en) Computer system having memory protection function
US8955150B2 (en) Apparatus and method for managing digital rights using virtualization technique
WO2009107330A1 (en) Information processor and method for controlling the same
JP2006155155A (en) Information leakage preventing device and method, and its program
JP2003345654A (en) Data protection system
JP2001256014A (en) Output system, output method to be used for the same and recording medium in which program to be executed in output system is recorded
JP2018124893A (en) Computer system and file access controlling method
JP2009223787A (en) Information processor and processing method, and program
JP2010097550A (en) Virus prevention program, storage device detachable from computer, and virus prevention method
JP5435642B2 (en) File control program, file control apparatus, and file control method
JP2008134820A (en) Print restriction processing program and information processor
KR20220085786A (en) Ransomware Protection
JP5298546B2 (en) Information management system, user terminal, information management method, and information management program
JP2011138514A (en) Method and device for detecting if computer file has been copied, and method and device for enabling the detection
JP2004302995A (en) File access limiting program
JP2008084140A (en) Secondary storage device write prohibition system
JP2011039953A (en) Device, system, program and method for integrating virtual thin client
JP4564477B2 (en) Thin client, thin client system, and program
JP4627266B2 (en) Information leakage prevention system due to unknown malware
US9560032B2 (en) Method and apparatus for preventing illegitimate outflow of electronic document
JP2011040044A (en) Device, system, program and method for integrating virtual thin client
JP2009169868A (en) Storage area access device and method for accessing storage area
JP2011076541A (en) Information leakage prevention program and starting recording program
JP5392494B2 (en) File check device, file check program, and file check method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121203

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131011

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131112

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131204

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131205

R150 Certificate of patent or registration of utility model

Ref document number: 5435642

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees